0% found this document useful (0 votes)
286 views

Advanced Java Questions With Answers

The javadoc command generates API documentation in HTML format from source code. It parses code and documentation comments delimited by /** */ to produce a set of HTML pages describing public and protected classes, methods, fields, etc. by default. It generates documentation files and directories based on the package structure, and builds indexes to provide navigation between packages and classes. Javadoc comments have a specific structure and support block and inline tags to document various aspects of code elements.

Uploaded by

vrasiah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
286 views

Advanced Java Questions With Answers

The javadoc command generates API documentation in HTML format from source code. It parses code and documentation comments delimited by /** */ to produce a set of HTML pages describing public and protected classes, methods, fields, etc. by default. It generates documentation files and directories based on the package structure, and builds indexes to provide navigation between packages and classes. Javadoc comments have a specific structure and support block and inline tags to document various aspects of code elements.

Uploaded by

vrasiah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Subjective-type Questions

1. What does javadoc command do?

It parses the declarations and documentation comments in the specified file(s)

and produces a set of html pages describing, by default public and protected

classes, interfaces, constructors, methods and fields.

2. Explain with examples the syntax of javadoc command.

javadoc file_name/ or package_name

eg: javadoc myProgram.java

3. Which delimiters are used to write javadoc comments?

/** */

4. Describe briefly the different files generated by javadoc.

First it creates a destination directory by default with the input file name (eg:

“myProgram\”. Then it builds trees for all packages and classes:

myProgram\myProgram.html

myProgram\package-frame.html

myProgram\package-summary.html

myProgram\package-tree.html

myProgram\constant-values.html

Then it builds indexes for all the packages and classes:

myProgram\overview-tree.html
myProgram\index-all.html

myProgram\deprecated-list.html

Then it builds index for all classes

myProgram\allclasses-frame.html

myProgram\allclasses-noframe.html

myProgram\index.html

myProgram\help-doc.html

5. Describe the structure of javadoc comments.

6. What is difference between block tags and in-line tag?

7. Write the name of a few tags for methods.

8. Write the examples of repeatable and nonrepeatable tags.

9. What is the function of javap command?

10. Describe with examples the syntax of javap command.

11. What is the function of jcmd?

12. Describe with examples the syntax of jcmd command.

13. Demonstrate how jcmd can be used as flight recorder command.

14. What is the full form of jhat?

15. What is the function of jhat command?

16. How do you obtain a JVM dump file?

17. What is the function of jdb?


18. Demonstrate how jdm can be used in step by step

program debugging.

You might also like