Java comments:
→ Java comments are statements that are not executed by the compiler and interpreter.
→ The comments can be used to provide information about each line of code.
→ It can also be used to hide program code for specific time.
Types of Java Comments:
→ Single Line Comment:
→ T...
Java comments:
→ Java comments are statements that are not executed by the compiler and interpreter.
→ The comments can be used to provide information about each line of code.
→ It can also be used to hide program code for specific time.
Types of Java Comments:
→ Single Line Comment:
→ The single line comment is used to comment only one line.
//This is single line comment
→ Multi Line Comment:
→ The multi line comment is used to comment multiple lines of code.
/*
This is
multi line comment
*/
→ Documentation Comment:
→ The documentation comment is used to create documentation API.
/**
This is
documentation comment
*/
-------------
Size: 41.74 KB
Language: en
Added: Jan 12, 2019
Slides: 5 pages
Slide Content
Java Comments Rakesh P
Java Comments Java comments are statements that are not executed by the compiler and interpreter. The comments can be used to provide information about each line of code. It can also be used to hide program code for specific time.
Java Comments Types - Single Line Comment The single line comment is used to comment only one line. //This is single line comment
Java Comments Types - Multi Line Comment The multi line comment is used to comment multiple lines of code. /* This is multi line comment */
Java Comments Types - Documentation Comment The documentation comment is used to create documentation API. /** This is documentation comment */