Architecture outlines steps involved in writing Java programs and combines compilation and interpretation processes. Each step in program's compilation and execution are described.
JRE is a runtime environment that includes all libraries and software necessary to run Java applications. JRE is included in JDK, but you can also download it separately.
JDK is a development environment for Java applications. JDK includes Java Runtime Environment, a compiler, an interpreter or loader, and a number of development tools.
JVM is a platform for executing Java programs. JVM convert bytecode to machine code. JVM loads, verifies, and execute the code, and enables runtime environment.
1. Java compiler converts original code into .class files. 2. Class file contains code in byte code that is converted into object file by JVM. 3. Final output appears on your screen.