Start here · the first lesson
What happens when you run a Java program?
Follow one small program from the text you type to the processor that runs it: the compiler, the class file, the JVM, memory, execution and garbage collection.
7 short chapters · about 21 minutes · no programming knowledge needed
Already know Java? Jump to any chapter, or explore the whole JVM.
- 1Your first Java programWhat is a Java program, before anything runs?
- 2The compilerHow does Hello.java become something the JVM can run?
- 3The JVMWhat is the JVM, and why does Java need one?
- 4Loading classesHow does the JVM get Hello.class ready to run?
- 5MemoryWhen your program creates an object, where does it go?
- 6ExecutionHow does the JVM actually run the bytecode?
- 7Garbage collectionWhat happens to objects your program no longer uses?
- What you now knowThe whole journey, in your own words, and a short check.