2.6 Java Comments
2.6 Java Comments
The Java comments are the statements in a program that are not
executed by the compiler and interpreter.
The single-line comment is used to comment only one line of the code.
It is the widely used and easiest way of commenting the statements.
Single line comments starts with two forward slashes (//). Any text in
front of // is not executed by Java.
Syntax:
CommentExample1.java