Tuesday, December 20, 2016

Comment Section in JAVA Programming Format

1. Comment Section:

--------------------------------------------------------------------------------------------------------------------------

As part of JAVA Application development before starting application implementation part it is convention to provide some description about the implementation including author Name, Project details, Client Details, Objective...

To provide the above specified description we have to use comment section, where we have to use comments.

There are three types of comments in JAVA:
i. Single Line Comment
ii. Multi Line Comment
iii. Documentation Comment

i. Single Line Comment:

------------------------------------------------

It allows the description with in a single line.
Syntax:
--------
//... description...


ii. Multi Line Comment

--------------------------------------------------
It allows the description in more than one line.
Syntax:
-------
/*....
...
..description...
...
*/


iii. Documentation Comment:

------------------------------------------------
It allows the description in more than one page.
Syntax:
-------
/*...
*...
*... description
*....
*....
*/

No comments:

Post a Comment