Comments in JAVA language
Java comments : Single line comments : The purpose of including comments in your code is to explain what the code is doing. Java supports both single and multi-line comments. All characters that appear within a comment are ignored by the Java compiler. A single-line comment starts with two forward slashes and continues until it reaches the end of the line. For example: // this is a single-line comment x = 5; // a single-line comment after code Multi-Line comments : Java also supports comments that span multiple lines. You start this type of comment with a forward slash followed by an asterisk, and end it with an asterisk followed by a forward slash. For example: /* This is also a comment spanning multiple lines */ Note that Java does not support nested multi-line comments. However, you can nest single-line comments within multi-line comments. /* This is a single-line comment: // a single-line comment */ ...