Difference between documentation comment and multiline comment in java?

Ads
 

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

Ads









Related Tutorials/Questions & Answers:
Difference between documentation comment and multiline comment in java?
JavaScript Comment Tag
Advertisements
javascript comment syntax html
sql add comment to column
all comment in jsp
JSP Comment Types with example
ModuleNotFoundError: No module named 'banner_comment'
ModuleNotFoundError: No module named 'code-comment'
ModuleNotFoundError: No module named 'code-comment'
ModuleNotFoundError: No module named 'code-comment'
ModuleNotFoundError: No module named 'comment-builder'
ModuleNotFoundError: No module named 'comment-builder'
ModuleNotFoundError: No module named 'comment-creator'
ModuleNotFoundError: No module named 'comment-creator'
ModuleNotFoundError: No module named 'comment-formatter'
ModuleNotFoundError: No module named 'comment-builder'
ModuleNotFoundError: No module named 'comment-parser'
ModuleNotFoundError: No module named 'comment-creator'
ModuleNotFoundError: No module named 'comment-formatter'
ModuleNotFoundError: No module named 'comment-parser'
ModuleNotFoundError: No module named 'cubicweb-comment'
ModuleNotFoundError: No module named 'cubicweb-comment'
ModuleNotFoundError: No module named 'cubicweb-comment'
ModuleNotFoundError: No module named 'django-comment'
ModuleNotFoundError: No module named 'flake8-block-comment'
ModuleNotFoundError: No module named 'gh-comment'
ModuleNotFoundError: No module named 'jira-comment'
ModuleNotFoundError: No module named 'jira-comment'
ModuleNotFoundError: No module named 'mac-comment'
ModuleNotFoundError: No module named 'ringo_comment'
Difference between struts and JSF

Ads