Commenting in your java code

Java supports three types of comments, two of which are taken from C++. you can surround a comment of any length with the characters “/*’ and “*/”, like this: /* This application prints out “Linux” */ public class abc { public static void main(string[] args) { system.out.println(“Linux”); } } The java compiler will ignore all … Read more

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