Java 2 Platform Standard Editionのこのリリースを識別するために、「1.5.0」と「5.0」の両方のバージョン番号が使用されます。「5.0」は製品バージョン、「1.5.0」は開発者バージョンです。「5.0」という番号は、J2SEの成熟度、安定性、拡張性、およびセキュリティレベルをより適切に反映するために使用されています。
JEP 193: 変数ハンドルjava.util.concurrent.atomic、さまざまな操作と同等のsun.misc.Unsafe操作を呼び出すための標準的な手段を定義する
JEP 213: Milling Project Coin、プライベートインスタンスメソッドでの@SafeVarargsの許可。try-with-resources文で実質的にfinalな変数をリソースとして使用できるようにする。推論された型の引数型が指定可能な場合、匿名クラスでダイヤモンド型を許可する。Java SE 8で開始された、有効な識別子名のセットからのアンダースコアの削除を完了する。インターフェースでのプライベートメソッドのサポート。
プレビュー機能であるJEP 325では、switchステートメントを拡張して式としても使用できるようにし、右辺が式である新しい形式のcaseラベルを追加します。breakステートメントは不要です。複雑な式にはyieldステートメントを使用できます。これは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 ; } };
JEP 406 は、instanceof 操作で使用されるパターンマッチング構文を switch 文と式に拡張します。これにより、引数の型、null ケース、およびパターンの絞り込みに基づいてケースを選択できるようになります。
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 // パターンの絞り込み-> "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 (); };
JEP 427: Pattern Matching for switch (Third Preview)
JEP 428: Structured Concurrency (Incubator)
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.
Such patterns can include nested patterns, where the components of records are themselves records, allowing patterns to match more object graphs.
Java 19 updates
Java SE 20
Java 20 was released on 21 March 2023.[408] All JEPs were either incubators or previews.
JEP 429: Scoped Values (Incubator)
JEP 432: Record Patterns (Second Preview)
JEP 433: Pattern Matching for switch (Fourth Preview)
JEP 434: Foreign Function & Memory API (Second Preview)
JEP 436: Virtual Threads (Second Preview)
JEP 437: Structured Concurrency (Second Incubator)
JEP 438: Vector API (Fifth Incubator)
Java 20 updates
Java SE 21 (LTS)
Java 21 was released on 19 September 2023.[414] 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:
JEP 430: String Templates (Preview)
JEP 431: Sequenced Collections
JEP 439: Generational ZGC
JEP 440: Record Patterns
JEP 441: Pattern Matching for switch
JEP 442: Foreign Function & Memory API (Third Preview)
JEP 443: Unnamed Patterns and Variables (Preview)
JEP 444: Virtual Threads
JEP 445: Unnamed Classes and Instance Main Methods (Preview)
JEP 446: Scoped Values (Preview)
JEP 448: Vector API (Sixth Incubator)
JEP 449: Deprecate the Windows 32-bit x86 Port for Removal
JEP 451: Prepare to Disallow the Dynamic Loading of Agents
JEP 452: Key Encapsulation Mechanism API
JEP 453: Structured Concurrency (Preview)
JEP 445, previewing unnamed classes, allows for a barebones Main class without boilerplate code:
Java 22 was released on 19 March 2024.[428][429] The following features, or JEPs, were added with this release:
JEP 423: Region Pinning for G1
JEP 447: Statements before super(...) (Preview)
JEP 454: Foreign Function & Memory API
JEP 456: Unnamed Variables & Patterns
JEP 457: Class-File API (Preview)
JEP 458: Launch Multi-File Source-Code Programs
JEP 459: String Templates (Second Preview)
JEP 460: Vector API (Seventh Incubator)
JEP 461: Stream Gatherers (Preview)
JEP 462: Structured Concurrency (Second Preview)
JEP 463: Implicitly Declared Classes and Instance Main Methods (Second Preview)
JEP 464: Scoped Values (Second Preview)
An API related to Java's threading implementation, java.lang.Thread.countStackFrames, was removed.[3][430]
Java SE 23
Java 23 was released on 17 September 2024,[431][432][433] with the following JEPs:
JEP 455: Primitive Types in Patterns, instanceof, and switch (Preview)
JEP 466: Class-File API (Second Preview)
JEP 467: Markdown Documentation Comments
JEP 469: Vector API (Eighth Incubator)
JEP 473: Stream Gatherers (Second Preview)
JEP 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal
JEP 474: ZGC: Generational Mode by Default
JEP 476: Module Import Declarations (Preview)
JEP 477: Implicitly Declared Classes and Instance Main Methods (Third Preview)
JEP 480: Structured Concurrency (Third Preview)
JEP 481: Scoped Values (Third Preview)
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.[434]
Java SE 24
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.[435]
The following JEPs were targeted to this version of Java SE:[436]
JEP 404: Generational Shenandoah (Experimental)
JEP 450: Compact Object Headers (Experimental) (formerly known as Project Lilliput)
JEP 472: Prepare to Restrict the Use of JNI
JEP 475: Late Barrier Expansion for G1
JEP 478: Key Derivation Function API (Preview)
JEP 479: Remove the Windows 32-bit x86 Port
JEP 483: Ahead-of-Time Class Loading & Linking
JEP 484: Class-File API
JEP 485: Stream Gatherers
JEP 486: Permanently Disable the Security Manager
JEP 487: Scoped Values (Fourth Preview)
JEP 488: Primitive Types in Patterns, instanceof, and switch (Second Preview)
JEP 489: Vector API (Ninth Incubator)
JEP 490: ZGC: Remove the Non-Generational Mode
JEP 491: Synchronize Virtual Threads without Pinning
JEP 492: Flexible Constructor Bodies (Third Preview)
JEP 493: Linking Run-Time Images without JMODs
JEP 494: Module Import Declarations (Second Preview)
JEP 495: Simple Source Files and Instance Main Methods (Fourth Preview)
JEP 496: Quantum-Resistant Module-Lattice-Based Key Encapsulation Mechanism
JEP 497: Quantum-Resistant Module-Lattice-Based Digital Signature Algorithm
JEP 498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe
JEP 499: Structured Concurrency (Fourth Preview)
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.
Java SE 25 (LTS)
The specification for Java 25 was finalized in July 2025, with 18 JEPs making it into the release.[437] Java 25 was released on September 16, 2025.[438]
JEP 470: PEM Encodings of Cryptographic Objects (Preview)
JEP 502: Stable Values (Preview)
JEP 503: Remove the 32-bit x86 Port
JEP 505: Structured Concurrency (Fifth Preview)
JEP 506: Scoped Values
JEP 507: Primitive Types in Patterns, instanceof, and switch (Third Preview)
JEP 508: Vector API (Tenth Incubator)
JEP 509: JFR CPU-Time Profiling (Experimental)
JEP 510: Key Derivation Function API
JEP 511: Module Import Declarations
JEP 512: Compact Source Files and Instance Main Methods
JEP 513: Flexible Constructor Bodies
JEP 514: Ahead-of-Time Command-Line Ergonomics
JEP 515: Ahead-of-Time Method Profiling
JEP 518: JFR Cooperative Sampling
JEP 519: Compact Object Headers
JEP 520: JFR Method Timing & Tracing
JEP 521: Generational Shenandoah
Java SE 26
The specification for Java 26 was finalized in December 2025, with 10 JEPs making it into the release.[439] Java 26 was released on March 17, 2026.[440]
The following JEPs were targeted to this release of Java SE:
JEP 500: Prepare to Make Final Mean Final
JEP 504: Remove the Applet API
JEP 516: Ahead-of-Time Object Caching with Any GC
JEP 517: HTTP/3 for the HTTP Client API
JEP 522: G1 GC: Improve Throughput by Reducing Synchronization
JEP 524: PEM Encodings of Cryptographic Objects (Second Preview)
JEP 525: Structured Concurrency (Sixth Preview)
JEP 526: Lazy Constants (Second Preview)
JEP 529: Vector API (Eleventh Incubator)
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.
Future 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.
Implementations
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,[441] 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,[442] 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,[443] 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[444] 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[445] is a downstream version of OpenJDK with some in-house optimizations. It includes enhancements in startup performance, footprint, and throughput.
GraalVM[446] 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[447] 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,[448] 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.
References
↑Reinhold, Mark (2017-09-06). "Moving Java Forward Faster". Retrieved 2017-09-16.
↑"Calling 'all aboard' on the six-month Java release train". theserverside.com. 2017-09-12. Retrieved 2017-09-16.
123"Support roadmap for the Microsoft Build of OpenJDK".
↑"JavaSoft ships Java 1.0" (Press release). Archived from the original on March 10, 2007. Retrieved 2008-02-05.
12Ortiz, C. Enrique; Giguère, Éric (2001). Mobile Information Device Profile for Java 2 Micro Edition: Developer's Guide. John Wiley & Sons. ISBN978-0-471-03465-0. Retrieved May 30, 2012.
↑"Mustang's HotSpot". Archived from the original on January 2, 2007.
↑Darcy, Joe (2008-08-03). "An apt replacement". Retrieved 2009-07-29.
↑"Install Java 6 on Mac OS X Leopard | Gephi, open source graph visualization software". Gephi.org. Retrieved 2016-09-30.
↑"Oracle Java SE Support Roadmap". Oracle Corporation. September 19, 2012. Retrieved October 22, 2012.
↑"Auto-update and update through Java Control Panel of JRE 6 will replace JRE 6 with JRE 7". Oracle Corporation. February 19, 2013. Retrieved March 2, 2013.
↑"Java SE Development Kit 6, Update 43 Release notes". Oracle Corporation. March 4, 2013. Retrieved March 4, 2013.
↑"Java SE Development Kit 6, Update 45 Release notes". Oracle Corporation. March 4, 2013. Retrieved March 4, 2013.
↑Critical Patch Update table shows four dates per year
↑"End of Java 7 Public Updates". After April 2015, Oracle will no longer post updates of Java SE 7 to its public download sites. Existing Java SE 7 downloads already posted as of April 2015 will remain accessible in the Java Archive on the Oracle Technology Network. Developers and end-users are encouraged to update to more recent Java SE versions that remain available for public download in order to continue receiving public updates and security enhancements. [..] July 2015: Updates for Java 7 are no longer available to the public. Oracle offers updates to Java 7 only for customers who have purchased Java support or have Oracle products that require Java 7.
↑"Oracle Java SE Support Roadmap". Oracle Corporation. 2014-12-19. Retrieved 2015-01-07.
↑"Java 7 Features". Sun Microsystems. 2010-02-09. Retrieved 2010-04-16.
12"Interface evolution via virtual extension methods"(PDF). Brian Goetz. 2011-07-20. Retrieved 2014-03-27.
↑"Lambda Expressions for the Java Programming Language". Brian Goetz. 2012-10-23. Retrieved 2014-03-27.
↑"The Java Tutorials: Default Methods". Oracle. Archived from the original on 2017-05-23. Retrieved 2014-03-27.
↑Gosling, James (2008-01-31). "Closures". Archived from the original on 2011-07-22. Retrieved 2008-03-09.
↑Reinhold, Mark (2009-11-28). "Closures for Java". Retrieved 2009-11-24.
↑Darcy, Joe. "Unsigned Integer Arithmetic API now in JDK 8". blogs.oracle.com.
↑"Oracle JDK 8 and JRE 8 Certified System Configurations". Oracle Corporation. Retrieved 2014-04-15.
↑Stahl, Henrik (2014-07-11). "Updated: The future of Java on Windows XP". Oracle Corporation. Archived from the original on 2014-11-11. Retrieved 2014-11-11. JDK 8 is not supported on WindowsXP. Early versions of JDK8 had known issues with the installer on WindowsXP that prevented it from installing without manual intervention. This was resolved in JDK 8 Update 25. The important point here is that we can no longer provide complete guarantees for Java on WindowsXP, since the OS is no longer being updated by Microsoft. We strongly recommend that users upgrade to a newer version of Windows that is still supported by Microsoft in order to maintain a stable and secure environment.
↑Wieldt, Tori (October 27, 2014). "Java SE 8 on Java.com". blog.oracle.com. Archived from the original on November 29, 2014. Retrieved November 24, 2014.
↑"Oracle Java SE Support Roadmap". Retrieved 2021-02-17.
↑"Java SE Development Kit 8, Update 5 (JDK 8u5)". oracle.com. Retrieved 2014-04-28.
↑"Java SE Development Kit 8, Update 11 (JDK 8u11)". oracle.com. Retrieved 2014-07-16.
↑Lea, Doug (January 15, 2015). "[concurrency-interest] jdk9 Candidate classes Flow and Submission Publisher". Archived from the original on January 20, 2015. Retrieved December 24, 2015.
↑Reactive Streams Releases First Stable Version for JVM
↑"JDK 9: First Release Candidate". 2017-08-09. Retrieved 2017-08-21.
↑"Java 9: Release date and new features". techworld.com. 2017-07-21. Archived from the original on 2017-12-07. Retrieved 2017-09-16."JDK 9". Oracle Corporation. Retrieved 2017-09-16.
↑"Mark your calendar: Java 9 finally has a release date". 2015-05-07.
↑"Java 9's new garbage collector: What's changing? What's staying?". June 26, 2015.