Part 01 / Topic 1 of 7
What Java is, and the pieces: JDK, JRE, JVM
Java is a high-level, compiled, statically-typed language.
- High-level means you write in words close to English, not in 0s and 1s.
- Compiled means a separate step turns your source code into something the computer can run, before you run it (Python runs your source more directly; more on this in section 5).
- Statically-typed means every variable's type is fixed and checked before the program runs, not while it runs (you will feel this from Part 2 onward).
Real-world example: your bank's core systems, Android apps (historically), and the big-data tools that power recommendation engines (Kafka, Spark, Hadoop) are all written on the Java platform.
| Area | What Java does there | Popular tools |
|---|---|---|
| Backend services | Powers APIs for banking, e-commerce, airlines | Spring Boot, Jakarta EE |
| Big data | Moves and processes huge amounts of data | Kafka, Spark, Hadoop (all run on the JVM) |
| Enterprise systems | Runs payroll, insurance, logistics software | Java EE / Jakarta EE |
| Android (legacy) | Older Android apps; Kotlin is now Google's default | Android SDK |
Three names get mixed up constantly. Keep them apart with this picture:
JDK (Java Development Kit)
├── compiler and tools: javac, javap, jar, ...
└── JRE (Java Runtime Environment)
├── core class libraries: String, ArrayList, System, ...
└── JVM (Java Virtual Machine)
— runs compiled bytecode
| Name | Full form | What it is for | Do you need it? |
|---|---|---|---|
| JVM | Java Virtual Machine | The engine that actually runs compiled Java bytecode, line by line | Always — it is inside the JRE |
| JRE | Java Runtime Environment | JVM + the standard library classes a running program needs | Only if you just run Java apps, never write them |
| JDK | Java Development Kit | JRE + the tools to write and compile Java: javac, javap, jar |
Yes, as a learner — install this one |
Think of a car factory: the JVM is the engine, the JRE is the whole car (engine plus everything it needs to drive), and the JDK is the factory — it can build the car (compile your code) and also contains a car to drive (run it). As a learner you always install the JDK, never the JRE alone; recent JDK downloads do not even offer a separate JRE package any more.
🔍 Going deeper: this course uses Amazon Corretto 21 (a free, production-ready OpenJDK 21 LTS build). Any JDK 21 build (Eclipse Temurin, Oracle's own JDK, Corretto) runs the examples the same way — "LTS" means Long-Term Support, a version with years of free security fixes, which is why courses and companies standardize on it instead of the newest release.
Done here? The practice set for Part 1 — including the solutions — is on the part page.