1. Technology
Send to a Friend via Email




JavaDoc creates documentation about an API based on comments in the Java source code. The output produced from the JavaDoc tool is HTML. For example, the JDK 7 API documentation is created using JavaDoc.

The comments in the Java source code are written with HTML tags (to add formatting) and use block tags for the various documentation sections. The comments must be written before the class or method they are describing. For example, part of the comment used to generate the documentation for System.out is:

	* The "standard" output stream. This stream is already
	* open and ready to accept output data. Typically this stream
	* corresponds to display output or another output destination
	* specified by the host environment or user.
	* <p>
	* For simple stand-alone Java applications, a typical way to write
	* a line of output data is:
	* <blockquote><pre>
	*     System.out.println(data)
	* </pre></blockquote>
	* <p>
	* See the <code>println</code> methods in class <code>PrintStream</code>.
	* @see java.io.PrintStream#println()
	* @see java.io.PrintStream#println(boolean)

It uses the @see block tag to fill in the See Also section of the documentation.


# A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

  1. About.com
  2. Technology
  3. Java
  4. Java Glossary
  5. J
  6. Definition for the Java Term: JavaDoc

©2014 About.com. All rights reserved.