How Java works

How Java works
• To develop and distribute a Java program
1. Programmer codes Java source statements
2. Java compiler converts source statements into bytecode (platform-independent object     language)
3. Bytecode is copied to the target platform
• To execute a Java program
1. Platform-dependent Java Virtual Machine (JVM) software must be installed
2. A copy of the JVM is started
3. Each bytecode statement is interpreted (translated) by the JVM into platform-dependent     machine language and executed under JVM control.
Java has two things: a programming language and a platform.