Lesson · Java Roadmap & Environment
Introduction: what Java is, and why it's still everywhere
10 min readIntroduction
Java is three things wearing one name — a language, a virtual machine, and a standard library big enough to be a platform. Knowing which one a question is about is half of understanding the answers.
Three things called Java
Java is a language, a virtual machine that runs its compiled form, and a standard library big enough to count as a platform of its own. Most confusion (and most interview answers that go sideways) comes from mixing the three up.
The language compiles to bytecode — instructions for an imaginary machine — and every real machine gets a JVM that executes that bytecode. That single design decision is WORA: *write once, run anywhere*. The same .jar really does run on a laptop, a Linux server and a mainframe without recompiling.
Java SE is the core platform you are learning here: language, JVM, and the standard library (collections, I/O, concurrency, time, crypto). Jakarta EE (the former Java EE) is the enterprise layer built on top of SE — and most job descriptions that say “Java” mean Java SE plus a framework like Spring.
The design philosophy that still shapes everything
Java's original goals were boring on purpose, and the boring choices are why it aged well. Five of them explain most of what you will see:
- WORA via bytecode — compile once, run on any JVM. Portability is a property of the artifact, not a promise you keep manually.
- Safety by default — no pointer arithmetic, array bounds are checked, casts are checked at runtime, and memory is managed. Whole classes of C bugs simply cannot happen.
- Backward compatibility as policy — code written for Java 8 largely still compiles and runs on Java 25. Deprecation takes years, and that slowness is intentional.
- Explicitness over cleverness — the verbosity people mock is a trade: code is read far more often than it is written, so the language favours the reader.
- Batteries included — collections, IO, networking, concurrency, time zones, crypto all ship with the runtime and change slowly, which is why they're trustworthy.
Editions, distributions, and the release train
The JDK you install is an implementation of the platform. Oracle JDK and OpenJDK share their sources; distributions like Temurin, Corretto, Zulu and Liberica are downstream builds of the same code. Since the licence change behind Java 17, all are free to use in production — what you pay for is *support*, not the bits.
Java ships on a six-month release train (… 21, 22, 23, 24, 25 …). Every two years a release is designated LTS — 8, 11, 17, 21, 25 — and receives years of security updates. Most teams standardise on an LTS and upgrade deliberately rather than chasing every train car.
Preview features ship switched off behind --enable-preview: they may change shape or disappear before they are final. Incubator modules are the same idea for APIs. This track always tells you *which version a feature landed in* and flags preview vs final, because both change how you should treat it.
How to read this track
The curriculum is ordered by dependency: language foundations first, then object orientation, then the everyday standard library, then concurrency, and only at the end the machinery underneath (JVM internals, GC). Nothing appears before the concepts it requires — so if something feels too abstract, the prerequisite is earlier in the list, not a different explanation.
Two habits pay off immediately. First, keep jshell open — every experiment in this course can be typed there with no file, no build and no IDE. Second, never trust a version-less answer: a Stack Overflow answer from 2012 is describing a materially different language.
The version in the answer matters
The same class has changed across releases — string internals, HashMap collision handling, date/time APIs, and what is deprecated have all moved. Before copying any snippet, check which JDK it targets. An answer that doesn't state its version is a rumour, not documentation.
Interview angles
Is Java a language or a platform?+
Both, and the distinction is the point: the language compiles to bytecode, and the platform (JVM + standard library) executes it on any OS. Saying 'Java is slow because it's interpreted' or 'Java is just a language' usually means someone has collapsed the two halves into one.
How does 'write once, run anywhere' actually work?+
javac compiles source to platform-independent bytecode; each platform ships a JVM that loads and executes that bytecode. The portability lives in the artifact plus the per-platform JVM, not in any compile-time flag.
OpenJDK vs Oracle JDK — what's the difference today?+
They share the same sources; Oracle JDK is Oracle's build, OpenJDK is the reference. Other distributions (Temurin, Corretto, Zulu, Liberica) are builds of the same code. Pick on support and update cadence, not features.
What is an LTS release, and why do teams standardise on one?+
A Long-Term-Support release (8, 11, 17, 21, 25) gets updates for years instead of the six-month train's short window. Teams ride an LTS for stability and patchability, then plan a deliberate upgrade to the next LTS.