Hello World

Hello World #

Java is object oriented, class based, high level, general purpose programming language. It is influenced mostly by C, C++, and Smalltalk.

Below is an example Hello World code. The file should be named Hello.java.

class Hello {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

The above code will print Hello World! to the console. The public keyword denotes that it can be access from anywhere. System.out.println is the method that prints the string in paranthesis into the console.