Difference between documentation comment and multiline comment in java?

Difference between documentation comment and multiline comment in java?

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









Related Tutorials/Questions & Answers:
Advertisements