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.

No comments:

Post a Comment