Java program to print Hello World!

Views: 107   

Following program shows you how to print Hello World!.
In this program we use System.out.println() to print hello world

public class Basic1 {

    public static void main(String[] args) {

        System.out.println("Hello World!");
    }

}

Output:

Hello World!
On By