Just Hit Run
In the editor you see your first Java program. It's already done.
Click Run (or press Ctrl+Enter) and watch what happens.
You don't have to change anything — just run it.
We use the compact syntax from Java 25 here. In older code you'll often see the long form with public class and public static void main(String[] args) wrapped around it — it does exactly the same thing. More on that under More info.
void main() {
IO.println("Hello, World!");
}
Java is a compiled language. First, the compiler (javac) translates your code into so-called bytecode — a kind of intermediate language that the Java Virtual Machine understands.
Then the JVM (Java Virtual Machine) starts up and runs that bytecode. That's why Java behaves the same on every operating system — "Write once, run anywhere".
IO.println() prints one line. In Java 25, IO is available automatically — no import needed.
Right now your code looks like this:
void main() {
IO.println("Hello, World!");
}
In older code (before Java 25) and in most company projects you'll see the classic form:
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Both do the same thing. The compact form has been a standard feature since Java 25 (September 2025) — perfect for getting started without having to understand classes, public, static and String[] arrays right away. You'll learn the classic form later, when you want to read existing code or work in a team.