COMMENT
- Java supports three types of comments
1.
/* text */
: The compiler ignores everything from/*
to*/
. 2.//text
: The compiler ignores everything from // to the end of the line. 3./** Documentation */
: This is a documentation comment and in general its called doc comment. The JDK javadoc tool uses doc comments when preparing automatically generated documentation.