♦ Single-Line Comments in Java
♣ Example1: Single-Line Comments in JavaLine by line commenting is possible in Java.
Below is the representation of Single Line comment.
// hi there, Iam single line comment
adding "//" before the code can comment that line of code.In this example, Single Line is commented.