The History of Java: From Oak to Java 27, LTS and the Release Cadence
How a Sun Microsystems project for TV set-top boxes became one of the world's most used platforms. Covers Oak, HotJava and applets, every major Java version up to Java 27, the six-month release cycle, and what LTS means.
kvi5hnuCode Sprout team member15 min readOn this page
Knowing Java's history is not just trivia. It explains why some features look the way they do: why switch once behaved like C's, why generics have the strange limitations you'll meet in a later part, why version numbers jumped from 1.4 to 5.0, and why your company might still be on Java 17 while Java 27 is out. This article tells the story from 1991 to today and finishes with a practical guide to Java versions.

1991: The Green Project and "Oak"
Java began in 1991 at Sun Microsystems, a company famous for its UNIX workstations and servers. A small team led by James Gosling and Patrick Naughton, code-named the Green project, set out to design a language for consumer electronics: devices such as cable-TV set-top boxes and smart remote controls.
Those devices had two properties that shaped Java:
- Little memory and processing power, so the language had to be small and produce compact code.
- Many different processors: each manufacturer might pick a different CPU, so the language could not be tied to one architecture.
The team's solution was a portable language that compiled to intermediate code for a virtual machine rather than to any particular chip. You met that idea as bytecode in the first article.
The team came from a UNIX and C background, so they based the language's syntax on C++ rather than on Lisp, Smalltalk or Pascal. Gosling called it Oak, reportedly after an oak tree outside his office window. When it turned out that a programming language called Oak already existed, the team needed a new name and chose Java, the American slang word for coffee (Java, the Indonesian island, was famous for its coffee). Java's mascot, a little character called Duke, also comes from this period.
A product nobody bought
In 1992 the Green team demonstrated its first device, called *7 ("star seven"): a handheld, touch-screen, very smart remote control. Nobody at Sun wanted to manufacture it, and consumer electronics companies weren't interested either. The team then bid for a contract to build an interactive cable-TV box for video-on-demand and lost. (The winning company was led by Jim Clark, who soon after co-founded Netscape, the company that would help make Java famous.)
Renamed FirstPerson, Inc., the group spent 1993 and the first half of 1994 looking for a buyer for its technology. It found none (one founder reportedly racked up 300,000 frequent-flyer miles trying) and was dissolved in 1994.
1994–1995: The Web Changes Everything
While the Green project was struggling, the World Wide Web was exploding. Most people browsed it with Mosaic, a free browser written at the University of Illinois' supercomputing centre. Marc Andreessen, one of its authors, went on to co-found Netscape.
The Java team realised that a web browser needed exactly the "weird" properties they had built for set-top boxes: architecture neutrality, reliability, security and real-time behaviour. Those properties weren't very important for workstation software, but they were essential for code downloaded from anywhere on the Internet and run on any computer. So they built a browser.
Patrick Naughton and Jonathan Payne wrote HotJava, a browser that could run Java code embedded in web pages. It was demonstrated at the SunWorld conference on May 23, 1995, and the reaction was enormous. When Java 1.0 shipped, it got coverage in mainstream newspapers and business magazines, a ten-minute story on US public radio, and a 100-million-dollar venture fund dedicated to Java products.
Applets: Java Inside Web Pages
The idea that caused the excitement was the applet: a Java program that runs inside a web page.
- The user needs only a Java-enabled browser; there is nothing to install.
- Each visit to the page fetches the latest version of the program.
- Thanks to the JVM's security model, the user supposedly never needs to worry about hostile code.
An applet appeared on a page much like an image, except that it was alive: it could react to the mouse and keyboard, animate, and exchange data with the server. A well-known example was the Jmol applet, which displayed 3D molecular structures that users could rotate and zoom. At the time, web pages couldn't do anything like this. JavaScript was rudimentary, and HTML had no <canvas> element.
Why applets died
The excitement soon turned into frustration:
- Version chaos. Netscape and Internet Explorer each shipped their own, often outdated, Java versions. Developers could never rely on a recent Java being present.
- Competition. Adobe Flash became the popular way to make web pages interactive.
- Security. As described in the previous article, attackers repeatedly found holes in the applet sandbox. Browsers first demanded digitally signed applets, then dropped Java support altogether. (Flash fared no better and was retired in 2020.)
Officially, applets were deprecated in Java 9 (2017), the Applet API was deprecated for removal in Java 17, and it was removed completely in Java 26 (2026). Today the browser's own technologies (JavaScript, HTML5 canvas, WebAssembly) cover what applets once promised, and Java's home moved to the server.
Java Versions, One by One
Java 1.0 and 1.1 (1996–1997)
Java 1.0 shipped in January 1996. It was not ready for serious application development. You could write a "nervous text" applet that jiggled letters around a canvas, but you couldn't even print. Java 1.1 (1997) filled the most obvious gaps. It added inner classes, greatly improved reflection, JDBC for database access, and a new event model for GUI programming.
Java 2: versions 1.2, 1.3 and 1.4 (1998–2002)
Version 1.2 (December 1998) replaced the toy-like early GUI and graphics toolkits with Swing and Java 2D, and added the Collections Framework that you'll study later. Three days after release, Sun's marketing department renamed the product "Java 2 Standard Edition Software Development Kit Version 1.2". This is why you'll see the abbreviations J2SE, J2EE and J2ME in older documentation.
Alongside the Standard Edition, Sun introduced two more editions: Micro Edition (J2ME) for embedded devices such as phones, and Enterprise Edition (J2EE) for server-side processing.
Versions 1.3 (2000) and 1.4 (2002) were incremental: a bigger library, better performance (1.3 made the HotSpot JVM the default), many bug fixes, and in 1.4 the assert keyword, regular expressions, NIO and logging. During this period the hype around applets faded, but Java became the platform of choice for server-side applications.
Java 5 (2004): the language grows up
Version 5.0 was the first release since 1.1 to change the language significantly. It was originally numbered 1.5; the number jumped to 5.0 at the 2004 JavaOne conference, and the "1." prefix gradually disappeared from marketing (though it survived inside version strings until Java 9).
Java 5 added:
- Generics, roughly comparable to C++ templates (
List<String>). After years of research, they were designed so that no changes to the virtual machine were needed. That constraint is why Java generics use type erasure, explained later in the course. - The enhanced
forloop ("for each"), autoboxing, varargs, enums, static import and annotations (metadata). Several of these were inspired by C#. java.util.concurrent, a professional-grade concurrency library.
Java 6 (2006) and the Oracle acquisition
Java 6 (late 2006, now without the ".0") brought no language changes but more performance and library improvements. In November 2006 Sun announced that Java would become open source under the GPL, and in 2007 it released the full JDK source as the OpenJDK project.
As data centres shifted from expensive specialised servers to cheap commodity hardware, Sun's business suffered. Oracle bought Sun in 2009–2010, and Java's development stalled for several years.
Java 7 (2011)
Java 7 delivered modest but welcome enhancements: switch on strings, the diamond operator (new ArrayList<>()), binary literals and underscores in numbers, try-with-resources and multi-catch, the fork-join framework, and the NIO.2 file API (java.nio.file).
Java 8 (2014): the functional revolution
Java 8 brought the biggest language change in almost two decades: lambda expressions, method references, default methods in interfaces, the Stream API for functional-style data processing (which can run in parallel), Optional, and the modern date and time API (java.time). Java 8 was so successful that many companies stayed on it for years, and it is still found in legacy systems.
Java 9 (2017): modules
The headline feature of Java 9 went back to 2008, when Mark Reinhold, Java's chief architect, began an effort to break the huge, monolithic platform into modules: self-contained units that declare what they need and what they offer. It took about nine years to design and build a module system that fit the Java platform. Java 9 also introduced JShell, factory methods such as List.of(...), and a new version-string format.
2018 onward: a new release every six months
Starting with Java 10 in March 2018, a new feature release ships every six months, in March and September. Small features no longer wait years for a "big" release. New language and library features can first appear as:
- Preview features: complete designs that ship for real-world trial before they're locked in. You switch them on with
--enable-preview, and the next release may still change them in response to feedback. Pattern matching forswitchis a good example: it went through four rounds of preview (Java 17 to 20) and became final in Java 21. - Incubator modules: experimental APIs (the Vector API has been incubating since Java 16).

LTS: long-term support
Most companies don't upgrade every six months. So every so often, a release is designated long-term support (LTS): vendors such as Oracle, Eclipse Adoptium, Amazon, Azul, Microsoft and Red Hat provide security and bug-fix updates for many years (often eight or more). Non-LTS releases get updates only until the next release, about six months.
The LTS releases so far are Java 8, 11 (2018), 17 (2021), 21 (2023) and 25 (2025). After Java 17 the gap between LTS releases shrank from three years to two years, so the next LTS is expected to be Java 29 in September 2027.
The Evolution in One Table
The table below summarises the most important language and library additions. The last column shows roughly how many public classes and interfaces the standard library had. The number fell at Java 11 because several large technologies (Java EE APIs, CORBA, JavaFX) were removed from the JDK.
| Version | Year | Headline features | Approx. public classes & interfaces |
|---|---|---|---|
| 1.0 | 1996 | The language itself | ~210 |
| 1.1 | 1997 | Inner classes, reflection, JDBC | ~480 |
| 1.2 | 1998 | Swing, Collections Framework, strictfp | ~1,520 |
| 1.3 | 2000 | HotSpot JVM by default (no language changes) | ~1,840 |
| 1.4 | 2002 | assert, regular expressions, NIO, logging | ~2,720 |
| 5.0 | 2004 | Generics, for-each, varargs, autoboxing, annotations, enums, static import | ~3,280 |
| 6 | 2006 | Performance and library improvements (no language changes) | ~3,790 |
| 7 | 2011 | switch on strings, diamond <>, binary literals, try-with-resources, multi-catch | ~4,020 |
| 8 | 2014 | Lambdas, default methods, streams, java.time | ~4,240 |
| 9 | 2017 | Modules, JShell, collection factory methods | ~6,000 |
| 11 (LTS) | 2018 | var for local variables, HTTP client, single-file source launch; Java EE, CORBA and JavaFX removed | ~4,410 |
| 17 (LTS) | 2021 | Switch expressions, text blocks, instanceof patterns, records, sealed classes | ~4,860 |
| 21 (LTS) | 2023 | Virtual threads, pattern matching for switch, record patterns, sequenced collections | ~4,880 |
| 22 | 2024 | Unnamed variables and patterns (_), Foreign Function & Memory API, multi-file source launch | |
| 23 | 2024 | Markdown documentation comments, generational ZGC by default | |
| 24 | 2025 | Stream gatherers, Class-File API, virtual threads no longer pinned by synchronized, Security Manager permanently disabled, post-quantum cryptography (ML-KEM, ML-DSA) | |
| 25 (LTS) | 2025 | Compact source files and instance main methods, module import declarations, flexible constructor bodies, scoped values, compact object headers | |
| 26 | 2026 | HTTP/3 in the HTTP client, Applet API removed, warnings when reflection mutates final fields, AOT object caching with any GC | |
| 27 | 2026 | G1 the default garbage collector everywhere, compact object headers on by default, post-quantum hybrid key exchange for TLS 1.3 |
How Java Version Numbers Work
Because of the history above, Java's version numbers are confusing:
| You may see | It means |
|---|---|
1.2, 1.4, J2SE 1.4 | Old "Java 2" era versions |
1.5 and 5.0 | The same release |
1.8 and Java 8 | The same release; tools such as Maven still accept 1.8 |
9, 11, 17.0.12, 21.0.5, 25.0.1 | Modern scheme: feature.interim.update. 21.0.5 = Java 21, 5th update release |
To check which version you have installed, run java -version (or java --version) in a terminal. The installation article covers this in detail.
Common questions
Why did version numbers jump from 1.4 to 5.0?
It was a marketing decision at the 2004 JavaOne conference, made to signal how big the Java 5 changes were. Internally the version string stayed 1.5.0 and kept the 1. prefix up to Java 8 (1.8.0_xxx). From Java 9 onwards, version strings start with the feature number, for example 25.0.1.
Should I learn on an LTS or on the newest release? Install the current LTS (Java 25) for courses and production-style work. If you want to try new features early, also install the newest release (Java 27 at the time of writing). Code written for an LTS almost always runs unchanged on later releases.
Is Java 8 still safe to use? Several vendors still publish security updates for Java 8, so it is not unpatched. It does lack ten years of language features, performance work and garbage-collector improvements. New projects should start on Java 21 or 25, and Java 8 systems should plan an upgrade.
Can I use preview features in production?
It is not recommended. A preview feature can change or disappear in the next release, and class files compiled with --enable-preview only run on that exact Java version with the flag. Use preview features for experiments, and wait until they become final.
Why are some features "incubating" for so long?
Some APIs depend on other work that is not finished. The Vector API, for example, is waiting for Project Valhalla's value classes so that its final design does not need to change later. Incubator modules live in jdk.incubator.* packages and need --add-modules to use.
Summary
- Java started in 1991 as the Green project at Sun, a portable language for consumer devices first named Oak.
- The web gave it purpose: the HotJava browser (May 1995) showed Java code running inside web pages, and Java 1.0 shipped in 1996.
- Applets made Java famous but faded because of browser version chaos, Flash, and security problems; the Applet API was removed in Java 26.
- Key milestones: Java 2 (1998, Swing and collections), Java 5 (2004, generics), open source (2007), Oracle acquisition (2009–2010), Java 8 (2014, lambdas and streams), Java 9 (2017, modules).
- Since 2018, a feature release ships every six months; LTS releases (11, 17, 21, 25; next 29) are supported for years.
- As of November 2026, Java 25 is the newest LTS and Java 27 is the newest release.
Practice Questions
Why did the Green project design a language that compiles to a virtual machine instead of to machine code?
It targeted consumer devices made by different manufacturers, each possibly with a different CPU. Compiling to code for a virtual machine meant one compiled program could run on any device that had the (small) virtual machine. The same property later made Java ideal for the web, where code is downloaded to computers of every kind.
Give two reasons applets disappeared.
Any two of: browsers shipped different, often outdated Java versions, so developers could not rely on features; Adobe Flash became the popular choice for interactive web content; repeated security holes in the applet sandbox led browsers to require signing and eventually to drop Java support entirely.
Why were Java 5 generics designed so that the virtual machine did not have to change?
To keep compatibility: existing JVMs and existing compiled code had to keep working. The generic type information is checked by the compiler and then mostly erased in the bytecode (type erasure). This explains several restrictions you'll learn about in the generics part of the course.
What is the difference between a preview feature and an LTS release?
A preview feature is a new language or library feature that is complete but not yet final. You must enable it with --enable-preview, and it may change in later releases. An LTS release is a Java version that vendors support with updates for many years. They are independent ideas: an LTS release can contain preview features, but production code on LTS usually avoids them.
Your company runs Java 21. Java 27 is out. Is Java 21 "out of date"?
Not in a practical sense. Java 21 is an LTS release that vendors continue to patch for years. Java 27 is a short-term release supported for about six months. A typical plan would be to upgrade to the next LTS, Java 25 (released September 2025), when the team is ready, rather than chasing every six-month release.
Previous: Java's Design Goals: The 11 White Paper Buzzwords Explained
Related reading
- Java Collectors.toMap: Collecting Streams into Maps
- Collecting Java Stream Results: toList, toArray, joining and Summary Statistics
- Java Optional Best Practices: Pitfalls, Creating Optionals, flatMap and stream()
- Java Optional: Getting, Consuming and Transforming Optional Values
- Java Stream Reductions: count, max, min, findFirst, findAny and anyMatch

More in Core Java I
Java volatile, Atomics, Deadlocks and ThreadLocal: Safe Sharing Between Threads
Share data between Java threads without bugs: memory visibility and volatile, final fields, AtomicInteger and compareAndSet, LongAdder, lazy holder initialization, safe publication, lock-ordering deadlocks, ThreadLocal, InheritableThreadLocal and ScopedValue.
Java Condition Objects and the synchronized Keyword: await, signalAll, wait and notify
Make threads wait for a condition safely with Condition.await and signalAll, then learn Java's built-in alternative: synchronized methods and blocks, intrinsic locks, wait and notifyAll, choosing lock objects, client-side locking, and the monitor concept.
Java Race Conditions and ReentrantLock: Synchronizing Shared Data
Why unsynchronized threads corrupt shared data, shown step by step with a lost-update race, and how to fix it with ReentrantLock: the lock/try/finally idiom, critical sections, reentrancy and hold counts, tryLock, fair locks, and the mistakes that cause bugs.
Java invokeAll, invokeAny and Fork-Join: Running Groups of Tasks
Coordinate many concurrent tasks in Java: invokeAll to wait for every result, invokeAny to take the first success, timeouts, ExecutorCompletionService for results in completion order, structured concurrency, and the fork-join framework with RecursiveTask, RecursiveAction and work stealing.
Discussion
Sign in to ask a question or share what you learned.