Wednesday, February 26, 2014

Hello World Program in Java

Hello World program in Java.

Code:


  1. public class HelloWorld 
  2. {
  3. /**
  4. * @param args
  5. */
  6. public static void main(String[] args) 
  7.        {
  8.           // TODO Auto-generated method stub
  9. System.out.println("Hello World !");
  10. }
  11. }


******************************************
******************************************
HelloWorld is the Classname written on the first line.
System.out.println is the Print statement, to print the output on the console.
/**           */ is the multiple-line comment in Java
// is the single line comment syntax in Java.

No comments:

Post a Comment