First Hello World in Java

Learn how to write your first Java program, understand each keyword, and run it step by step.

The best way to start learning Java is by writing a simple program that prints “Hello, World!” to the screen.

This program helps you understand the structure of every Java application and the meaning of its core keywords.

Example Code

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