0% found this document useful (0 votes)
202 views1 page

Comments in Java PDF

Java comments are statements that are not executed by the code and can be used to provide information about each line or hide code temporarily. There are three types of comments in Java - single line comments starting with //, multi line comments between /* and */, and documentation comments beginning with /** used to create API documentation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
202 views1 page

Comments in Java PDF

Java comments are statements that are not executed by the code and can be used to provide information about each line or hide code temporarily. There are three types of comments in Java - single line comments starting with //, multi line comments between /* and */, and documentation comments beginning with /** used to create API documentation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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
❏ 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 */

You might also like