How do you write a JavaDoc comment?
Category:
technology and computing
search
Writing Javadoc Comments
They must begin with a slash and two stars, and they can include special tags to describe characteristics like method parameters or return values. The HTML files generated by Javadoc will describe each field and method of a class, using the Javadoc comments in the source code itself.
Keeping this in view, what is the use of Javadoc comments?
JavaDoc tool is a document generator tool in Java programming language for generating standard documentation in HTML format. It generates API documentation. It parses the declarations ad documentation in a set of source file describing classes, methods, constructors and fields.
Keeping this in consideration, how do you create a Javadoc?
By the way, the source code must be decorated as per the norms of the javadoc tool.
- Select Generate Javadoc from the Projectmenu in Eclipse.
- Select one or more package for which the Javadoc will be generated.
- Provide the documentation title; make sure all the basic options and document tags are checked.
Javadoc is a tool which comes with JDK and it is used for generating Java code documentation in HTML format from Java source code, which requires documentation in a predefined format. */ are Java multi-line comments. Similarly, the line which preceeds // is Java single-line comment.