Hello world java program example

Hello world java program example

Category : core java , Uncategorized

Create Hello world java program:

HelloWorld.java

/**
 * This program is used to print "Hello World".
 * @author javaexamplesprograms
 */
public class HelloWorld {
      public static void main(String args[]){
            //This line will print "Hello World".
            System.out.println("Hello World.");
      }
}

Output:

Hello World.

Download this example.