Tuesday 26 May 2015

Java Comments

Comments are those lines which will be skipped while compilation.
i.e. The JVM ignore the comments.

Java supports three types of comments
// single line comment.To comment a single line it is used
/*---*/ multiline comment.To comment more than one line.
/**--*/ Documentation comment. Used to produce a HTML document for your program.

Example Click here


No comments:

Post a Comment