Java Coder
Difference between documentation comment and multiline comment in java?
2 Answer(s)      a year and 5 months ago
Posted in : Java Beginners

Difference between documentation comment and multiline comment in java?

Advertisement
View Answers

December 23, 2013 at 4:41 PM


Java programming language supports three types of Comments. Single line comment, Multiple line comment and Document comment. Go through the given tutorial to know the difference between document comment and multiple lines comment. Comments in Java Code



December 23, 2013 at 5:48 PM


Hi,

Here is an example of documentation comment:

/** documentation comment*/

The javadoc tool uses the content of documentation comment for generating the API documentation.

Here is an example of multiline comment:

/* 
 comment  Line 1
 Comment line 1 
*/

The Multiple comment is used to comment the code or write some details about the code in multiple lines.

Thanks