First Program in Java
// WAP in Java that prints Hello World. public class HelloWorld{ public static void main(String[ ] args){ System.out.print("Hello, World !!!!!!"); } } In above ( // ) sign represent a comment in a program. What ever we write after ( // ) symbol, it is ignored while the process is compiled. Symbol ( // ) is use to comment a single line and ( /*..........*/ ) and this symbol is used to comment a multiple lines in program. Writing a comment in the program is good habit of a programmer. It helps other programmer to read and understand the program. // WAP in Java that prints Hello World. Note:- this line will be ignored by the compiler while compiling the process. -------------------------------------------------------------------------------------------------------------------------- // WAP in Java that prints Hello World. public ...