Java Language / Java Comments

Java Comments are the lines in the java program / code which are not executed by the compiler and interpreter. They are used for the documentation purpose.

S.No Type of Comment Syntax
1 Single Line Comment //This is single line comment
2 Multi Line Comment /* This is
multi line comment
*/
3 Documentation Comment /** This is
Documentation
 comment
*/


Home     Back