Comments in Java
Just as in the case of C++ and C, Java supports two types of comments namely, single line comments and multi-line comments. The syntax for these types of comments are as follows: Single line comment: //<comment> Multiple line comment: /*<comment>*/ All characters that exist in the comments region are simply ignored by the Java compiler. … Read more