The Way Java Works
- Source
Create a source document in Java language.
- Compiler
Run the document through a source code compiler. The compiler checks for errors and won’t let us compile until it’s satisfied that everything will run correctly.
- Output Code
The compiler creates a new document, coded into Java bytecode. Any device capable of running Java will be able to interpret this file into something it can run. The compiled bytecode is platform-independent.
- Virtual Machines
The Virtual Machine reads and runs the bytecode.