Java powers everything from Android apps to giant bank systems. One language, billions of devices.
1 Platform Independent
"Write Once, Run Anywhere" — Java bytecode runs on any device with a JVM.
2 Object-Oriented
Code is organized into classes and objects — like blueprints and houses.
3 Memory Safe
Automatic garbage collection cleans up unused memory for you.
4 Rich Ecosystem
A huge library ecosystem and community backs every Java project.
Why learn Java?
Platform Independent1"Write Once, Run Anywhere" — Java bytecode runs on any device with a JVM. Object-Oriented2Code is organized into classes and objects — like blueprints and houses. Memory Safe3Automatic garbage collection cleans up unused memory for you. Rich Ecosystem4A huge library ecosystem and community backs every Java project. 4 building blocks make up Why learn Java?
1991 Project Green
James Gosling starts the Green Project at Sun Microsystems.
1995 Java 1.0
Java is released publicly with the famous "Write Once, Run Anywhere" promise.
2004 Java 5.0
Generics, enums and for-each loops modernize the language.
2014 Java 8
Lambda expressions and Streams change how Java code is written.
2017 Java 9+
The module system arrives and releases become twice a year.
Click "Run" to follow your code on its journey from source file to output — then click any stage to see what happens inside.
Follow the journey of a Java program — including what happens when bytecode fails verification.
process decision input / output start / end Press play and watch every line execute — variables appear in memory and output builds in the console.
JVMThe JVM loads the HelloWorld class into memory.
Memory
no variables yet — press play
Console
output appears as the program runs…
Read the code and type the output you expect — one line per line. Then check yourself.
Your predicted output — one line per console line
Hint: The + sign joins text with numbers. Two texts are glued together too.
Click a term, then click its description to lock the pair.
4 conceptsTap a card to expand ?JVMdrops into place
?javacdrops into place
?bytecodedrops into place
?JDKdrops into place
01Java source (.java) is compiled by javac into bytecode (.class).
02The JVM makes bytecode portable across operating systems.
03Execution starts in the main method.
04Variables live in memory with types: String, int, boolean and more.