Hello World

A “Hello world!” program is usually a computer program that displays the message “Hello world!”. It is very simple in most of the programming languages.

Let see how to write hello world program in Java.

Program

public class HelloWorld {

    public static void main(String[] args) {

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

    }
}

Output

Hello World