Subsections
- Three different ways to put comments in your Java code:
// |
define a comment to the end of the current row |
/* ... */ |
define a multi-line comment between the two symbols |
/** ...*/ |
a "Javadoc" multi-line comment |
- The following special tags in Javadoc comments have predefined purposes.
- Specify the author of the code.
@author Alvin Alexander
- Specify an arbitrary version.
@version 1.11
- Specify an arbitrary version specification that denotes when the tagged entity was added to your system
@since 2.1
- Use the javadoc command to print a separate set of HTML javadoc pages for your classes.
- See http://java.sun.com/j2se/1.4/docs/api/ for an example of javadoc documentation pages for the Java2 Platform.
- Comment skew - comments become out of date as the source code changes over time.
- Some programmers write documentation, others do not.
- Some businesses have technical writers that end up needing write access to your Java source code files.
|
|