Java has comment conventions similar to those of C++. Two slashes together, “//” make the rest of the line a comment, as follows:
i = 0; // the "to end-of-line" comment
Comments starting with “/*
” make all the characters up to and including the first “*/
”, be a comment. It might stretch over several lines:
/* the "regular multiline" comment
goes here.
*/
There's a third variety of comment starting with “/**
”. This indicates text that will be picked up from the source code by javadoc, an automatic HTML documentation generator. The entire Java API has been documented by putting these “/** ... */” comments in the source code, and running javadoc on it. The resulting run-time library HTML documentation is on the Sun website at java.sun.com. Before we describe the format of javadoc comments, let's describe the javadoc output that forms the API documentation.
3.128.173.53