Reference articles on history, science, culture and more
Encyclopedia

Java version history

List of versions of the Java programming language

The Java language has undergone several changes since JDK 1.0 as well as numerous additions of classes and packages to the standard library. Since J2SE 1.4, the evolution of the Java language has been governed by the Java Community Process (JCP), which uses Java Specification Requests (JSRs) to propose and specify additions and changes to the Java platform. The language is specified by the Java Language Specification (JLS); changes to the JLS are managed under JSR 901. In September 2017, Mark Reinhold, chief architect of the Java Platform, proposed to change the release train to "one feature release every six months" rather than the then-current two-year schedule. This proposal took effect for all following versions, and is still the current release schedule.

In addition to the language changes, other changes have been made to the Java Class Library over the years, which has grown from a few hundred classes in JDK 1.0 to over three thousand in J2SE 5. Entire new APIs, such as Swing and Java2D, have been introduced, and many of the original JDK 1.0 classes and methods have been deprecated, and very few APIs have been removed (at least one, for threading, in Java 22). Some programs allow the conversion of Java programs from one version of the Java platform to an older one (for example Java 5.0 backported to 1.4) (see Java backporting tools).

Regarding Oracle's Java SE support roadmap, Java SE 25 (LTS) is the latest version as of September 2025 (and Java 26 a later released version) while versions 21, 17, 11 and 8 are the other still supported (long-term support − LTS) versions, where Oracle customers will receive Oracle Premier Support. Oracle continues to release no-cost public Java 8 updates for development and personal use indefinitely.

In the case of OpenJDK, both commercial long-term support and free software updates are available from multiple organizations in the broader community.

Java 27 was released on 15 September 2026 and Java 25 LTS was released on 16 September 2025.

01Release table

Java version overview
Version Type Class file format version Release date End of public updates (free) End of extended support (paid)
Unsupported: JDK 1.045January 23, 1996May 1996, N/a
Unsupported: JDK 1.145February 18, 1997October 2002, N/a
Unsupported: J2SE 1.246December 4, 1998November 2003, N/a
Unsupported: J2SE 1.347May 8, 2000March 2006, N/a
Unsupported: J2SE 1.448February 13, 2002October 2008, N/a
Unsupported: J2SE 5.0 (1.5)49September 30, 2004October 2009, N/a
Unsupported: Java SE 6 (1.6)50December 11, 2006April 2013 for Oracle
December 2018 for Azul
December 2016 for Red Hat
October 2018 for Oracle
December 2027 for Azul
March 2028 for BellSoft Liberica
Unsupported: Java SE 7 (1.7)51July 28, 2011July 2015 for Oracle
July 2022 for Azul
September 2022 for IBM Java SDK
June 2020 for Red Hat
July 2022 for Oracle
December 2027 for Azul
March 2028 for BellSoft Liberica
Supported: Java SE 8 (1.8)Supported: LTS52March 18, 2014April 2019 for Oracle
November 2026 for Red Hat
November 2026 for Azul
November 2026 for IBM Semeru Runtimes
December 2030 for Eclipse Temurin
December 2030 for Amazon Corretto
December 2030 for IBM Java SDK
December 2030 for Oracle
December 2030 for Azul
March 2031 for BellSoft Liberica
Unsupported: Java SE 9 (1.9)53September 21, 2017March 2018, N/a
Unsupported: Java SE 10 (1.10)54March 20, 2018September 2018, N/a
Supported: Java SE 11Supported: LTS55September 25, 2018April 2019 for Oracle
September 2027 for Microsoft Build of OpenJDK
October 2024 for Red Hat
October 2027 for Eclipse Temurin
October 2027 for IBM Semeru Runtimes
January 2032 for Amazon Corretto
January 2032 for Azul

January 2032 for Azul
March 2032 for BellSoft Liberica
October 2027 for Red Hat
January 2032 for Oracle
Unsupported: Java SE 1256March 19, 2019September 2019, N/a
Unsupported: Java SE 1357September 17, 2019March 2020, N/a
Unsupported: Java SE 1458March 17, 2020September 2020, N/a
Unsupported: Java SE 1559September 16, 2020March 2021, N/a
Unsupported: Java SE 1660March 16, 2021September 2021, N/a
Supported: Java SE 17Supported: LTS61September 14, 2021September 2024 for Oracle
September 2027 for Microsoft Build of OpenJDK
October 2027 for Eclipse Temurin
October 2027 for Red Hat
October 2027 for IBM Semeru Runtimes
October 2029 for Amazon Corretto
September 2029 for Azul
September 2029 for Oracle
March 2030 for BellSoft Liberica
Unsupported: Java SE 1862March 22, 2022September 2022, N/a
Unsupported: Java SE 1963September 20, 2022March 2023, N/a
Unsupported: Java SE 2064March 21, 2023September 2023, N/a
Supported: Java SE 21Supported: LTS65September 19, 2023September 2028 for Oracle
September 2028 for Microsoft Build of OpenJDK
December 2029 for Red Hat
December 2029 for Eclipse Temurin
December 2029 for IBM Semeru Runtimes
October 2030 for Amazon Corretto
September 2031 for Azul
September 2031 for Oracle
March 2032 for BellSoft Liberica
Unsupported: Java SE 2266March 19, 2024September 2024, N/a
Unsupported: Java SE 2367September 17, 2024March 2025 for Oracle
March 2025 for Azul
March 2025 for IBM Semeru Runtimes
, N/a
Unsupported: Java SE 2468March 18, 2025September 2025, N/a
Supported: Java SE 25Supported: LTS69September 16, 2025September 2030 for Oracle
September 2031 for Eclipse Temurin
September 2033 for Azul
July 2032 for Amazon Corretto
September 2033 for Oracle
March 2034 for BellSoft Liberica
Unsupported: Java SE 2670March 17, 2026September 2026, N/a
Latest version: Java SE 2771September 15, 2026March 2027, N/a
Legend: Unsupported Supported Latest version Preview version Future version

02JDK 1.0

The first version was released on January 23, 1996. The first stable version, JDK 1.0.2, is called Java 1.

It included:

  • core language features (basic java types in java.lang, and utility classes in java.util)
  • support for graphics (AWT framework)
  • support for creating a Java applet
  • libraries for I/O and networking

03JDK 1.1

JDK 1.1
Released19 February 1997 (1997-02-19)

Major additions in the release on February 19, 1997 included:

04J2SE 1.2

J2SE 1.2
CodenamePlayground
Released8 December 1998 (1998-12-08)

The release on December 8, 1998 and subsequent releases through J2SE 5.0 were rebranded retrospectively Java 2 and the version name "J2SE" (Java 2 Platform, Standard Edition) replaced JDK to distinguish the base platform from J2EE (Java 2 Platform, Enterprise Edition) and J2ME (Java 2 Platform, Micro Edition). This was a very significant release of Java as it tripled the size of the Java platform to 1520 classes in 59 packages. Major additions included:

05J2SE 1.3

J2SE 1.3
CodenameKestrel
Released8 May 2000 (2000-05-08)

The most notable changes in the May 8, 2000 release were:

Java 1.3 is the last release of Java to officially support Microsoft Windows 95.

06J2SE 1.4

J2SE 1.4
CodenameMerlin
Released6 February 2002 (2002-02-06)
Support ended
PublicOctober 2008 (2008-10)
PaidFebruary 2013 (2013-02)

The February 6, 2002 release was the first release of the Java platform developed under the Java Community Process as JSR 59. Major changes included:

  • Language changes
  • Library improvements
    • Regular expressions modeled after Perl regular expressions
    • Exception chaining allows an exception to encapsulate original lower-level exception
    • Internet Protocol version 6 (IPv6) support
    • Non-blocking I/O (named NIO) (specified in JSR 51)
    • Logging API (specified in JSR 47)
    • Image I/O API for reading and writing images in formats like JPEG and PNG
    • Integrated XML parser and XSLT processor (JAXP) (specified in JSR 5 and JSR 63)
    • Integrated security and cryptography extensions (JCE, JSSE, JAAS)
    • Java Web Start included (Java Web Start was first released in March 2001 for J2SE 1.3) (specified in JSR 56)
    • Preferences API (java.util.prefs)

Public support and security updates for Java 1.4 ended in October 2008. Paid security updates for Oracle customers ended in February 2013.

07Java SE 5

Java SE 5
CodenameTiger
Released30 September 2004 (2004-09-30)
Support ended
PublicNovember 2009 (2009-11)
PaidApril 2015 (2015-04)

The release on September 30, 2004 was originally numbered 1.5, which is still used as the internal version number. The number was changed to "better reflect the level of maturity, stability, scalability and security of the J2SE". This version was developed under JSR 176.

Java SE 5 entered its end-of-public-updates period on April 8, 2008; updates are no longer available to the public as of November 3, 2009. Updates were available to paid Oracle customers until May 2015.

Tiger added a number of significant new language features:

  • Generics: provides compile-time (static) type safety for collections and eliminates the need for most typecasts (type conversion) (specified by JSR 14)
  • Metadata: also called annotations; allows language constructs such as classes and methods to be tagged with additional data, which can then be processed by metadata-aware utilities (specified by JSR 175)
  • Autoboxing/unboxing: automatic conversions between primitive types (such as int) and primitive wrapper classes (such as Integer) (specified by JSR 201)
  • Enumerations: the enum keyword creates a typesafe, ordered list of values (such as Day.MONDAY, Day.TUESDAY, etc.); previously this could only be achieved by non-typesafe constant integers or manually constructed classes (typesafe enum pattern) (specified by JSR 201)
  • Varargs: the last parameter of a method can now be declared using a type name followed by three dots (e.g. void drawtext(String... lines)); in the calling code any number of parameters of that type can be used and they are then placed in an array to be passed to the method, or alternatively the calling code can pass an array of that type
  • Enhanced for each loop: the for loop syntax is extended with special syntax for iterating over each member of either an array or any Iterable, such as the standard Collection classes (specified by JSR 201)
  • Improved semantics of execution for multi-threaded Java programs; the new Java memory model addresses issues of complexity, effectiveness, and performance of previous specifications
  • Static imports

There were also the following improvements to the standard libraries:

Java 5 is the last release of Java to officially support Microsoft Windows 98 and Windows ME, while Windows Vista was the newest version of Windows that Java SE 5 was supported on prior to Java 5 going end-of-life in October 2009.

Java 5 Update 5 (1.5.0_05) is the last release of Java to work on Windows 95 (with Internet Explorer 5.5 installed) and Windows NT 4.0.

Java 5 was first available on Apple Mac OS X 10.4 (Tiger) and was the default version of Java installed on Apple Mac OS X 10.5 (Leopard).

Public support and security updates for Java 1.5 ended in November 2009. Paid security updates for Oracle customers ended in April 2015.

Versioning change

This version introduced a new versioning system for the Java language, although the old versioning system continued to be used for developer libraries:

Both version numbers "1.5.0" and "5.0" are used to identify this release of the Java 2 Platform Standard Edition. Version "5.0" is the product version, while "1.5.0" is the developer version. The number "5.0" is used to better reflect the level of maturity, stability, scalability and security of the J2SE.

, "Version 1.5.0 or 5.0?", Java release notes

This correspondence continued through later releases (Java 6 = JDK 1.6, Java 7 = JDK 1.7, and so on).

08Java SE 6

Java SE 6
CodenameMustang
Released11 November 2006 (2006-11-11)
Support ended
PublicFebruary 2013 (2013-02)

As of the version released on December 11, 2006, Sun replaced the name "J2SE" with Java SE and dropped the ".0" from the version number. Internal numbering for developers remains 1.6.0.

This version was developed under JSR 270.

During the development phase, new builds including enhancements and bug fixes were released approximately weekly. Beta versions were released in February and June 2006, leading up to a final release that occurred on December 11, 2006.

Major changes included in this version:

  • Support for older Win9x versions dropped; unofficially, Java 6 Update 7 was the last release of Java shown to work on these versions of Windows. This is believed to be due to the major changes in Update 10.
  • Scripting Language Support (JSR 223): Generic API for tight integration with scripting languages, and built-in Mozilla JavaScript Rhino integration.
  • Dramatic performance improvements for the core platform, and Swing.
  • Improved Web Service support through JAX-WS (JSR 224).
  • JDBC 4.0 support (JSR 221).
  • Java Compiler API (JSR 199): an API allowing a Java program to select and invoke a Java Compiler programmatically.
  • Upgrade of JAXB to version 2.0: Including integration of a StAX parser.
  • Support for pluggable annotations (JSR 269).
  • Many GUI improvements, such as integration of SwingWorker in the API, table sorting and filtering, and true Swing double-buffering (eliminating the gray-area effect).
  • JVM improvements include: synchronization and compiler performance optimizations, new algorithms and upgrades to existing garbage collection algorithms, and application start-up performance.

Java 6 can be installed to Mac OS X 10.5 (Leopard) running on 64-bit (Core 2 Duo and higher) processor machines. Java 6 is also supported by both 32-bit and 64-bit machines running Mac OS X 10.6 (Snow Leopard).

Java 6 reached the end of its supported life in February 2013, at which time all public updates, including security updates, were scheduled to be stopped. Oracle released two more updates to Java 6 in March and April 2013, which patched some security vulnerabilities.

Java 6 updates

After Java 6 release, Sun, and later Oracle, released several updates which, while not changing any public API, enhanced end-user usability or fixed bugs.

09Java SE 7

Java SE 7
CodenameDolphin
Released28 July 2011 (2011-07-28)
Support ended
PublicApril 2015 (2015-04)
PaidJune 2022 (2022-06)

Java 7 was a major update that launched on July 7, 2011 and was made available for developers on July 28, 2011. The development period was organized into thirteen milestones; on June 6, 2011, the last of the thirteen milestones was finished. On average, 8 builds (which generally included enhancements and bug fixes) were released per milestone. The feature list at the OpenJDK 7 project lists many of the changes.

Additions in Java 7 include:

  • JVM support for dynamic languages, with the new invokedynamic bytecode under JSR-292, following the prototyping work currently done on the Multi Language Virtual Machine
  • Compressed 64-bit pointers (available in Java 6 with -XX:+UseCompressedOops)
  • Project Coin language features:
  • Strings in switch
  • Automatic resource management in try-statement aka try-with-resources statement
  • Improved type inference for generic instance creation, aka the diamond operator <>
  • Simplified varargs method declaration
  • Binary integer literals
  • Allowing underscores in numeric literals
  • Catching multiple exception types and rethrowing exceptions with improved type checking
  • Concurrency utilities under JSR 166
  • New file I/O library (defined by JSR 203) adding support for multiple file systems, file metadata and symbolic links. The new packages are java.nio.file, java.nio.file.attribute and java.nio.file.spi
  • Timsort is used to sort collections and arrays of objects instead of merge sort
  • Library-level support for elliptic curve cryptography algorithms
  • An XRender pipeline for Java 2D, which improves handling of features specific to modern GPUs
  • New platform APIs for the graphics features originally implemented in version 6u10 as unsupported APIs
  • Enhanced library-level support for new network protocols, including SCTP and Sockets Direct Protocol
  • Upstream updates to XML and Unicode
  • Java deployment rule sets

Lambda (Java's implementation of lambda functions), Jigsaw (Java's implementation of modules), and part of Coin were dropped from Java 7, and released as part of Java 8 (except for Jigsaw, which was released in Java 9).

Java 7 was the default version to download on java.com from April 2012 until Java 8 was released.

Java 7 updates

Oracle issued public updates to the Java 7 family on a quarterly basis until April 2015 when the product reached the end of its public availability. Further updates for JDK 7, which continued until July 2022, are only made available to customers with a support contract.

10Java SE 8 (LTS)

Java SE 8
LTS version
CodenameSpider
Released18 March 2014 (2014-03-18)
# of JEPs8

Java 8 was released on 18 March 2014, and included some features that were planned for Java 7 but later deferred.

Work on features was organized in terms of JDK Enhancement Proposals (JEPs).

Java 8 is not supported on Windows XP but as of JDK 8 update 25, it can still be installed and run under Windows XP. Previous updates of JDK 8 could be run under XP by downloading archived zip format file and unzipping it for the executable. The last version of Java 8 could run on XP is update 251.

From October 2014, Java 8 was the default version to download (and then again the download replacing Java 9) from the official website. "Oracle will continue to provide Public Updates and auto updates of Java SE 8, Indefinitely for Personal Users".

Java 8 updates

11Java SE 9

Java SE 9
Released21 September 2017 (2017-09-21)
# of JEPs9
Support ended
PublicMarch 2018 (2018-03)

Java SE 9 was made available on September 21, 2017 due to controversial acceptance of the current implementation of Project Jigsaw by Java Executive Committee which led Oracle to fix some open issues and concerns and to refine some critical technical questions. In the last days of June 2017, Java Community Process expressed nearly unanimous consensus on the proposed Module System scheme.

The first Java 9 release candidate was released on August 9, 2017. The first stable release of Java 9 was on September 21, 2017.

History

At JavaOne 2011, Oracle discussed features they hoped to release for Java 9 in 2016. Java 9 should include better support for multi-gigabyte heaps, better native code integration, a different default garbage collector (G1, for "shorter response times") and a self-tuning JVM. In early 2016, the release of Java 9 was rescheduled for March 2017 and later again postponed four more months to July 2017.

Java 9 updates

12Java SE 10

Java SE 10
Released20 March 2018 (2018-03-20)
# of JEPs12
Support ended
PublicSeptember 2018 (2018-09)

OpenJDK 10 was released on March 20, 2018, with twelve new features confirmed. Among these features were:

The first of these JEP 286 Local-Variable Type Inference, allows the var keyword to be used for local variables with the actual type calculated by the compiler. Due to this change, developers can do the following instead of manually specifying the variable's type:

var list = new ArrayList<String>(); // infers ArrayList<String> var stream = list.stream(); // infers Stream<String>

Java 10 updates

13Java SE 11 (LTS)

14Java SE 12

Java SE 12
Released19 March 2019 (2019-03-19)
# of JEPs8
Addition(s)
Preview(s)Enhanced switch statements
Support ended
PublicSeptember 2019 (2019-09)

JDK 12 was released on March 19, 2019. Among others, Java 12 includes a number of new features, such as:

The preview feature JEP 325 extends the switch statement so it can also be used as an expression, and adds a new form of case label where the right hand side is an expression. No break statement is needed. For complex expressions a yield statement can be used. This becomes standard in Java SE 14.

int ndays = switch(month) { case JAN, MAR, MAY, JUL, AUG, OCT, DEC -> 31; case APR, JUN, SEP, NOV -> 30; case FEB -> { if (year % 400 == 0) yield 29; else if (year % 100 == 0) yield 28; else if (year % 4 == 0) yield 29; else yield 28; } };

Java 12 updates

15Java SE 13

Java SE 13
Released17 September 2019 (2019-09-17)
# of JEPs5
Addition(s)
Preview(s)Enhanced switch statements, text blocks
Support ended
PublicMarch 2023 (2023-03)

JDK 13 was released on September 17, 2019. Java 13 includes the following new features, as well as "hundreds of smaller enhancements and thousands of bug fixes".

JEP 355 Text Blocks allows multiline string literals:

String html = """ <html lang="en"> <body> <p>Hello, world</p> </body> </html> """;

Java 13 updates

16Java SE 14

Java SE 14
Released17 March 2020 (2020-03-17)
# of JEPs16
Addition(s)
NotableHelpful NullPointerExceptions, enhanced switch statements
Preview(s)Pattern matching for instanceof, records, text blocks
Incubatingjpackager, Foreign memory access
Removal(s)
NotableRemove Concurrent Mark Sweep garbage collector
Support ended
PublicSeptember 2020 (2020-09)

JDK 14 was released on March 17, 2020. Java 14 includes the following new features, as well as "hundreds of smaller enhancements and thousands of bug fixes".

JEP 305, Pattern Matching for instanceof simplifies the common case of an instanceof test being immediately followed by cast, replacing

if (obj instanceof String) { String s = (String)obj; System.out.println(s.length()); }

with

if (obj instanceof String s) { System.out.println(s.length()); }

JEP 359 Records allows easy creation of simple immutable Tuple-like classes.

record Point(int x, int y) { } Point p = new Point(3, 4); System.out.println(p.x());

Java 14 updates

17Java SE 15

Java SE 15
Released15 September 2020 (2020-09-15)
# of JEPs14
Addition(s)
NotableHidden classes, ZGC (garbage collector), Shenandoah (garbage collector), text blocks
Preview(s)Sealed classes, pattern matching of instanceof, records
IncubatingForeign-memory access
Removal(s)
NotableJavaScript engine, Solaris and SPARC ports
Support ended
PublicMarch 2023 (2023-03)

JDK 15 was released on September 15, 2020. Java 15 adds e.g. support for multi-line string literals (aka Text Blocks). The Shenandoah and Z garbage collectors (latter sometimes abbreviated ZGC) are now ready for use in production (i.e. no longer marked experimental). Support for Oracle's Solaris operating system (and SPARC CPUs) is dropped (while still available in e.g. Java 11). The Nashorn JavaScript Engine is removed. Also removed some root CA certificates.

JEP 360 Sealed Classes adds sealed classes and interfaces that restrict which other classes or interfaces may extend or implement them. Only those classes specified in a permits clause may extend the class or interface.

package com.example.geometry; public abstract sealed class Shape permits Circle, Rectangle, Square {...}

Together with records, sealed classes are sum types. They work well with other recent features like records, switch expressions, and pattern matching for instance-of. They all form part of a system for "Pattern matching in Java" first discussed by Gavin Bierman and Brian Goetz, in September 2018.

Java 15 updates

18Java SE 16

Java SE 16
Released16 March 2021 (2021-03-16)
# of JEPs17
Addition(s)
NotableWindows/AArch64 Port, jpackager, pattern matching for instanceof, records
Preview(s)Sealed classes
IncubatingForeign linker, Foreign-memory access
Support ended
PublicSeptember 2021 (2021-09)

JDK 16 was released on March 16, 2021. Java 16 removes Ahead-of-Time compilation (and Graal JIT) options. The Java implementation itself was and is still written in C++, while as of Java 16, more recent C++14 (but still not e.g. C++17 or C++20) is allowed. The code was also moved to GitHub, dropping Mercurial as the source control system.

Java 16 updates

19Java SE 17 (LTS)

Java SE 17
LTS version
Released14 September 2021 (2021-09-14)
# of JEPs14
Addition(s)
NotablemacOS/AArch64 Port, sealed classes
Preview(s)Switch pattern matching
IncubatingVector API, Foreign function & memory API
Removal(s)
NotableAOT compiler, RMI activation, strictfp keyword made obsolete (JEP 306)

JDK 17 was released in September 2021. Java 17 is the 2nd long-term support (LTS) release since switching to the new 6-month release cadence (the first being Java 11).

JEP 406 extends the pattern matching syntax used in instanceof operations to switch statements and expressions. It allows cases to be selected based on the type of the argument, null cases and refining patterns

Object o = ...; return switch (o) { case null -> "Null"; case String s -> "String %s".formatted(s); case Long l -> "long %d".formatted(l); case Double d -> "double %f".formatted(d); case Integer i && i > 0 // refining patterns -> "positive int %d".formatted(i); case Integer i && i == 0 -> "zero int %d".formatted(i); case Integer i && i < 0 -> "negative int %d".formatted(i); default -> o.toString(); };

Java 17 updates

20Java SE 18

Java SE 18
Released22 March 2022 (2022-03-22)
# of JEPs9
Addition(s)
Notable
  • UTF by default
  • Javadoc code snippets
Preview(s)Switch pattern matching
Incubating
  • Vector API
  • Foreign function & memory API
Removal(s)
NotableDeprecated finalization for removal
Support ended
PublicSeptember 2022 (2022-09)

JDK 18 was released on March 22, 2022.

Java 18 updates

21Java SE 19

Java SE 19
Released20 September 2022 (2022-09-20)
# of JEPs7
Addition(s)
Preview(s)
  • Foreign function & memory API
  • Switch pattern matching
Incubating
  • Vector API
  • Structured concurrency
Support ended
PublicMarch 2023 (2023-03)

JDK 19 was released on 20 September 2022.

JEP 405 allows record patterns, extending the pattern matching capabilities of instanceof operators, and switch expressions, to include record patterns that explicitly refer to the components of the record.

record Rectangle(int x, int y, int w, int h) {} int area(Object o) { if (o instanceof Rectangle(int x, int y, int w, int h)) { return w * h; } return 0; }

Such patterns can include nested patterns, where the components of records are themselves records, allowing patterns to match more object graphs.

Java 19 updates

22Java SE 20

Java SE 20
Released21 March 2023 (2023-03-21)
# of JEPs7
Addition(s)
IncubatingScoped values
Support ended
PublicSeptember 2023 (2023-09)

Java 20 was released on 21 March 2023. All JEPs were either incubators or previews.

Java 20 updates

23Java SE 21 (LTS)

Java SE 21
LTS version
Released19 September 2023 (2023-09-19)
# of JEPs15
Addition(s)
NotableRecord patterns, pattern matching for switch, virtual threads
Preview(s)String templates, unnamed classes and main methods
IncubatingVector API

Java 21 was released on 19 September 2023. The 32-bit version of Java for Windows on x86 was deprecated for removal with this release. The following JEPs were added, including eight JEPs that graduated from the incubating and preview stages, compared to Java 20 which only had previewing and incubating JEPs. Java 21 introduces features first previewed in Java 17 (pattern matching for switch statements) and Java 19 (record patterns). All JEPs added with Java 21 include the following:

  1. JEP 430: String Templates (Preview)
  2. JEP 431: Sequenced Collections
  3. JEP 439: Generational ZGC
  4. JEP 440: Record Patterns
  5. JEP 441: Pattern Matching for switch
  6. JEP 442: Foreign Function & Memory API (Third Preview)
  7. JEP 443: Unnamed Patterns and Variables (Preview)
  8. JEP 444: Virtual Threads
  9. JEP 445: Unnamed Classes and Instance Main Methods (Preview)
  10. JEP 446: Scoped Values (Preview)
  11. JEP 448: Vector API (Sixth Incubator)
  12. JEP 449: Deprecate the Windows 32-bit x86 Port for Removal
  13. JEP 451: Prepare to Disallow the Dynamic Loading of Agents
  14. JEP 452: Key Encapsulation Mechanism API
  15. JEP 453: Structured Concurrency (Preview)

JEP 445, previewing unnamed classes, allows for a barebones Main class without boilerplate code:

void main() { System.out.println("Hello, World!"); }

instead of :

public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } }

Java 21 updates

24Java SE 22

Java SE 22
Released19 March 2024 (2024-03-19)
# of JEPs12
Addition(s)
NotableForeign function and memory API, unnamed variables and patterns
Preview(s)Structured concurrency, string templates
IncubatingVector API
Support ended
PublicSeptember 2024 (2024-09)

Java 22 was released on 19 March 2024. The following features, or JEPs, were added with this release:

  1. JEP 423: Region Pinning for G1
  2. JEP 447: Statements before super(...) (Preview)
  3. JEP 454: Foreign Function & Memory API
  4. JEP 456: Unnamed Variables & Patterns
  5. JEP 457: Class-File API (Preview)
  6. JEP 458: Launch Multi-File Source-Code Programs
  7. JEP 459: String Templates (Second Preview)
  8. JEP 460: Vector API (Seventh Incubator)
  9. JEP 461: Stream Gatherers (Preview)
  10. JEP 462: Structured Concurrency (Second Preview)
  11. JEP 463: Implicitly Declared Classes and Instance Main Methods (Second Preview)
  12. JEP 464: Scoped Values (Second Preview)

An API related to Java's threading implementation, java.lang.Thread.countStackFrames, was removed.

25Java SE 23

Java SE 23
Released17 September 2024 (2024-09-17)
# of JEPs12
Addition(s)
NotableMarkdown documentation comments
Preview(s)Primitive types in Patterns, instanceof, and switch, Class-File API, Stream Gatherers, Module import declarations, Implicitly declared classes and instance main methods, structured concurrency, scoped values, flexible constructor bodies
IncubatingVector API

Java 23 was released on 17 September 2024, with the following JEPs:

  1. JEP 455: Primitive Types in Patterns, instanceof, and switch (Preview)
  2. JEP 466: Class-File API (Second Preview)
  3. JEP 467: Markdown Documentation Comments
  4. JEP 469: Vector API (Eighth Incubator)
  5. JEP 473: Stream Gatherers (Second Preview)
  6. JEP 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal
  7. JEP 474: ZGC: Generational Mode by Default
  8. JEP 476: Module Import Declarations (Preview)
  9. JEP 477: Implicitly Declared Classes and Instance Main Methods (Third Preview)
  10. JEP 480: Structured Concurrency (Third Preview)
  11. JEP 481: Scoped Values (Third Preview)
  12. JEP 482: Flexible Constructor Bodies (Second Preview)

The String Templates preview feature was removed in Java 23 due to issues with the design of the feature.

26Java SE 24

Java SE 24
Released18 March 2025 (2025-03-18)
# of JEPs24

The specification for Java 24 was finalized in December 2024, with 24 JEPs making it into the release and it was released on 18 March 2025.

The following JEPs were targeted to this version of Java SE:

  1. JEP 404: Generational Shenandoah (Experimental)
  2. JEP 450: Compact Object Headers (Experimental) (formerly known as Project Lilliput)
  3. JEP 472: Prepare to Restrict the Use of JNI
  4. JEP 475: Late Barrier Expansion for G1
  5. JEP 478: Key Derivation Function API (Preview)
  6. JEP 479: Remove the Windows 32-bit x86 Port
  7. JEP 483: Ahead-of-Time Class Loading & Linking
  8. JEP 484: Class-File API
  9. JEP 485: Stream Gatherers
  10. JEP 486: Permanently Disable the Security Manager
  11. JEP 487: Scoped Values (Fourth Preview)
  12. JEP 488: Primitive Types in Patterns, instanceof, and switch (Second Preview)
  13. JEP 489: Vector API (Ninth Incubator)
  14. JEP 490: ZGC: Remove the Non-Generational Mode
  15. JEP 491: Synchronize Virtual Threads without Pinning
  16. JEP 492: Flexible Constructor Bodies (Third Preview)
  17. JEP 493: Linking Run-Time Images without JMODs
  18. JEP 494: Module Import Declarations (Second Preview)
  19. JEP 495: Simple Source Files and Instance Main Methods (Fourth Preview)
  20. JEP 496: Quantum-Resistant Module-Lattice-Based Key Encapsulation Mechanism
  21. JEP 497: Quantum-Resistant Module-Lattice-Based Digital Signature Algorithm
  22. JEP 498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe
  23. JEP 499: Structured Concurrency (Fourth Preview)
  24. JEP 501: Deprecate the 32-bit x86 Port for Removal

Java SE 24 is the last release of Java to officially support the 32-bit x86 edition of Microsoft Windows 10.

27Java SE 25 (LTS)

28Java SE 26

Java SE 26
Released17 March 2026 (2026-03-17)
# of JEPs10
Removal(s)
NotableApplet API

The specification for Java 26 was finalized in December 2025, with 10 JEPs making it into the release. Java 26 was released on March 17, 2026.

The following JEPs were targeted to this release of Java SE:

  1. JEP 500: Prepare to Make Final Mean Final
  2. JEP 504: Remove the Applet API
  3. JEP 516: Ahead-of-Time Object Caching with Any GC
  4. JEP 517: HTTP/3 for the HTTP Client API
  5. JEP 522: G1 GC: Improve Throughput by Reducing Synchronization
  6. JEP 524: PEM Encodings of Cryptographic Objects (Second Preview)
  7. JEP 525: Structured Concurrency (Sixth Preview)
  8. JEP 526: Lazy Constants (Second Preview)
  9. JEP 529: Vector API (Eleventh Incubator)
  10. JEP 530: Primitive Types in Patterns, instanceof, and switch (Fourth Preview)

Java 26 removes support for creating Java applets with the Applet API, after having been deprecated since the release of Java 17 in September 2021.

29Future features

  • Project Valhalla: Value classes, whose objects lack identity, but can in certain cases get an improved memory layout (with less indirection), or have their allocation optimized away entirely.
  • Project Panama:
    • Improved interoperability with native code, to enable Java source code to call functions and use data types from other languages, in a way that is easier and has better performance than today (this part of Project Panama is getting stabilized in Java 22 under JEP 454: Foreign Function & Memory API).
    • Vector API, a portable and relatively low-level abstraction layer for SIMD programming. Its stabilization is dependent on Project Valhalla.
  • Project Lilliput: Reduce the size of Java object headers. First down to 64 bits, and then down to 32 bits.
  • Reducing startup time and warm-up time (time to peak performance) in JIT mode:
    • Project CRaC enables making snapshots of whole JVM (together with the running application) and restoring it with necessary adjustments (reopening files, sockets, etc).
    • Project Leyden, among other things, will allow partial or (in the long term) full AOT compiling, reducing overall dynamism (by adopting so called "closed-world constraints") to reduce dynamic compiling overhead.
  • Project Babylon aims to extend the Java language's reach to alternative programming models with an enhancement to its reflective programming abilities, called code reflection (i.e., reflection over code itself). The stated main goal is to run Java code on GPUs, with SQL and other programming models as secondary targets.

30Implementations

The officially supported Java platform, first developed at Sun and now stewarded by Oracle, is Java SE. Releases are based on the OpenJDK project, a free and open-source project with an open development model. Other Java implementations exist, however, in part due to Java's early history as proprietary software. In contrast, some implementations were created to offer some benefits over the standard implementation, often the result of some area of academic or corporate-sponsored research. Many Linux distributions include builds of OpenJDK through the IcedTea project started by Red Hat, which provides a more straightforward build and integration environment.

Visual J++ and the Microsoft Java Virtual Machine were created as incompatible implementations. After the Sun v. Microsoft lawsuit, Microsoft abandoned it and began work on the .NET platform. In 2021, Microsoft started distributing compatible "Microsoft Build of OpenJDK" for Java 11 first then also for Java 17. Their builds support not only Windows, but also Linux and macOS.

Other proprietary Java implementations are available, such as Azul's Zing. Azul offers certified open source OpenJDK builds under the Zulu moniker.

Prior to the release of OpenJDK, while Sun's implementation was still proprietary, the GNU Classpath project was created to provide a free and open-source implementation of the Java platform. Since the release of JDK 7, when OpenJDK became the official reference implementation, the original motivation for the GNU Classpath project almost completely disappeared, and its last release was in 2012.

The Apache Harmony project was started shortly before the release of OpenJDK. After Sun's initial source code release, the Harmony project continued, working to provide an implementation under a lax license, in contrast to the protective license chosen for OpenJDK. Google later developed Android and released it under a lax license. Android incorporated parts of the Harmony project, supplemented with Google's own Dalvik virtual machine and ART. Apache Harmony has since been retired, and Google has switched its Harmony components with equivalent ones from OpenJDK.

Both Jikes and Jikes RVM are open-source research projects that IBM developed.

Several other implementations exist that started as proprietary software, but are now open source. IBM initially developed OpenJ9 as the proprietary J9, but has since relicensed the project and donated it to the Eclipse Foundation. JRockit is a proprietary implementation that was acquired by Oracle and incorporated into subsequent OpenJDK versions.

Most commonly used implementations in 2025

Amazon developed Corretto, a no-cost, multiplatform, production-ready distribution of OpenJDK with long-term support that includes performance enhancements and security fixes. Corretto is certified as compatible with the Java SE standard and is used internally at Amazon for many production services.

The Eclipse Temurin project, formerly known as AdoptOpenJDK, provides prebuilt OpenJDK binaries from a fully open source build farm. The project transitioned to the Eclipse Foundation in 2021 as part of the Adoptium Working Group, which ensures high-quality, vendor-neutral Java runtime distributions.

BellSoft Liberica JDK is another OpenJDK-based implementation that provides builds for a wide range of platforms, including support for embedded systems and older architectures. It offers both standard and "Full" versions that include additional components like JavaFX.

SAP Machine is SAP's downstream distribution of OpenJDK, optimized for SAP applications and deployments. It provides both short-term and long-term support releases aligned with OpenJDK's release schedule.

Alibaba Dragonwell is a downstream version of OpenJDK with some in-house optimizations. It includes enhancements in startup performance, footprint, and throughput.

GraalVM represents a significant departure from traditional Java implementations. Developed by Oracle Labs, it provides a polyglot virtual machine supporting multiple languages beyond Java, including JavaScript, Python, Ruby, and R. GraalVM includes an advanced just-in-time compiler written in Java and supports ahead-of-time compilation for creating native executables, substantially reducing startup time and memory footprint.

The Red Hat build of OpenJDK is Red Hat's supported distribution of OpenJDK for Red Hat Enterprise Linux and Windows, providing long-term support and regular updates as part of Red Hat's subscription offerings.

The Semeru Runtime, based on the Eclipse OpenJ9 JVM and OpenJDK class libraries, is IBM's no-cost Java runtime optimized for cloud deployments. It offers improved startup time, smaller memory footprint, and better throughput compared to HotSpot-based implementations.

Watch videos about Java version historyExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Java version history, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.