Comments and annotations are ignored by the compiler but are useful to other programmers.
The Java programming language supports three kinds of comments.
The compiler ignores everything from /* to */.
This indicates a documentation comment (doc comment, for short). The compiler ignores this kind of comment, just like it ignores comments that use /* and */. The javadoc tool uses doc comments when preparing automatically generated documentation. For more information on javadoc, see the JavadocTM tool documentation .