A comment is a text that the compiler ignores but that is useful for programmers. Comments are normally used to annotate code for future reference. The compiler treats them as white space. You can use comments in testing to make certain lines of code inactive.
A java comment is written in one of the following ways:
The comment characters (/*, */, and //) have no special meaning within a character constant, a string literal, or a comment.