Difference between documentation comment and multiline comment in java?

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:
Difference between documentation comment and multiline comment in java?
difference between java5 and java6 - Java Beginners
Advertisements
JSP Comment and HTML Comment
Hidden Comment
How to comment javascript code?
javascript comment syntax html
JavaScript Comment Tag
COMMENT & HIDDEN COMMENT IN JSP
Comment PHP Script - MobileApplications
sql add comment to column
all comment in jsp
HTML5 comment tag Example, Definition of <!--  --> comment tag.
JSP Comment Types with example
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-parser'
ModuleNotFoundError: No module named 'cubicweb-comment'
ModuleNotFoundError: No module named 'cubicweb-comment'
ModuleNotFoundError: No module named 'jira-comment'
ModuleNotFoundError: No module named 'mac-comment'
ModuleNotFoundError: No module named 'ringo_comment'
ModuleNotFoundError: No module named 'banner_comment'
ModuleNotFoundError: No module named 'code-comment'
ModuleNotFoundError: No module named 'comment-builder'
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 'django-comment'
ModuleNotFoundError: No module named 'flake8-block-comment'
ModuleNotFoundError: No module named 'gh-comment'
ModuleNotFoundError: No module named 'jira-comment'
Difference between DispatchAction and LookupDispatchAction
difference between SessionState and ViewState
difference between ForwardAction and IncludeAction
Difference between struts and JSF
difference between == and === operators?
HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE?
HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE?
JavaScript Comment
difference between varchar & varchar2?
Difference between 3d and 4d
What is the difference between the >> and >>> operators?
Java2
ModuleNotFoundError: No module named 'blended_html_comment_box'

Ads