Here is the lifecycle of a Java program running in the JRE:
| Model | Description | |-------|-------------| | | Provided separately up to Java 8. | | JDK‑bundled runtime | From Java 11 onward, running java from a JDK uses the embedded runtime image. | | jlink custom runtime | Create minimal runtimes containing only required modules. | | Container images | Distroless or slim Java base images (e.g., Eclipse Temurin, OpenJDK). | Here is the lifecycle of a Java program
A: This is a lingering myth from the 1990s. Modern JREs use JIT compilation and optimized garbage collectors (like G1GC and ZGC) which allow Java to run near-native speeds, sometimes even faster for long-running processes. | | Container images | Distroless or slim
Download the (Runtime) or JDK (Development Kit) from your chosen vendor (e.g., Adoptium). Most modern distributions only distribute the JDK because it is modular, but if a "JRE only" option exists, it is smaller. Download the (Runtime) or JDK (Development Kit) from
You should see output like: