What Is Java

Java is a programming language first released by Sun Microsystems in 1995. Three decades later it is still one of the most widely used languages, best known for the enterprise server applications that handle work for businesses and online services.

Java is statically typed. Its compiler checks types and many other rules before a program starts, so plenty of mistakes are caught early.

The compiler turns Java source code into bytecode. A compatible Java Virtual Machine (JVM) can run that bytecode on different operating systems, so Java programs are not tied to one kind of computer.

Your first Java program

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

Output:

Hello, Java!

The class is named Main, and execution begins in its main method. System.out.println sends one line of text to the program's standard output.

Java is case-sensitive. Main, main, and MAIN are three different names.

Your first exercise is already complete. Run it and watch Java produce the same greeting.