Tuesday, August 20, 2019

COMMENTS in JAVA

To provide the description about the program we have to use java comments.
There are 3 types of comments present in the java language.

1) Single line Comments:-
By using single line comments we are providing description about our program within a single line.
Starts with…………….>// (double slash)
Syntax:- //description

2) Multi line Comments:-
This comment is used to provide description about our program in more than one line.
Syntax: - /*…………….line-1
……………..line-2
*/

3) Documentation Comments:-
This comment is used to provide description about our program in more than one page.
In general we are using document comment to prepare API kind of documents but it is not sujastable.
Syntax: - /*…………….line-1
*……………..line-2
*………………line-3
*/
Ex:-/*project name:-green project
team size:- 6
team lead:- ratan
*/
class Test
{
//main method
public static void main(String[] args)
{
//printing statement
System.out.println("ratan");
}
};

No comments:

Post a Comment

AME (Approval Management Engine)

AME (Approval Management Engine) : AME Stands for Oracle Approval Management Engine. AME is a self service web application that enables...