Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Difference between documentation comment and multiline comment in java?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
Difference between documentation comment and multiline comment in java?
2 Answer(s)      11 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



Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com