Java version history#JDK 1.0
{{Short description|List of versions of the Java programming language}}
{{About|the Java programming language||History of Java (disambiguation){{!}}History of Java}}
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 [http://www.jcp.org/en/jsr/detail?id=901 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.{{cite web| title=Moving Java Forward Faster | last=Reinhold | first=Mark | url=https://mreinhold.org/blog/forward-faster | date=2017-09-06 | access-date=2017-09-16}}{{cite web| title=Calling 'all aboard' on the six-month Java release train |publisher=theserverside.com | url=http://www.theserverside.com/news/450426185/Calling-all-aboard-on-the-six-month-Java-release-train | date=2017-09-12 | access-date=2017-09-16}} 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 23 is the latest version, while versions 21, 17, 11 and 8 are the currently 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. Oracle also continues to release no-cost public Java 17 LTS updates for all users, including commercial and production use until September 2024.{{Cite web|url=https://blogs.oracle.com/cloud-infrastructure/post/introducing-free-java-license|title=Introducing the Free Java License
|last=Smith| first=Donald|date=}}
In the case of OpenJDK, both commercial long-term support and free software updates are available from multiple organizations in the broader community.{{cite web| title=What does LTS mean for OpenJDK? | last=Reinhold | first=Mark | url=https://mail.openjdk.java.net/pipermail/jdk-dev/2018-August/001824.html | date=2018-08-17 | access-date=2018-08-28}}
Java 23 was released on 17 September 2024. Java 24 was released on 18 March 2025.{{cite web | url=https://jdk.java.net/24/ | title=OpenJDK JDK 24.0.1 GA Release }}
Release table
{{Java version history table}}
JDK 1.0
{{Infobox Java version
| version name = JDK 1.0
| released = {{Start date and age|1996|1|23|df=y|br=yes|paren=yes}}
}}
The first version was released on January 23, 1996.{{cite press release|url=http://www.sun.com/smi/Press/sunflash/1996-01/sunflash.960123.10561.xml |title=JavaSoft ships Java 1.0 |access-date=2008-02-05 |url-status=dead |archive-url=https://web.archive.org/web/20070310235103/http://www.sun.com/smi/Press/sunflash/1996-01/sunflash.960123.10561.xml |archive-date=March 10, 2007}}{{cite book |last1=Ortiz |first1=C. Enrique |last2=Giguère |first2=Éric |title=Mobile Information Device Profile for Java 2 Micro Edition: Developer's Guide |year=2001 |publisher=John Wiley & Sons |isbn=978-0-471-03465-0 |url=https://archive.org/details/mobileinformatio0000orti |access-date=May 30, 2012 |url-access=registration }} The first stable version, JDK 1.0.2, is called Java 1.
{{-}}
JDK 1.1
{{Infobox Java version
| version name = JDK 1.1
| released = {{Start date and age|1997|2|19|df=y|br=yes|paren=yes}}
}}
Major additions in the release on February 19, 1997 included:[https://web.archive.org/web/20080210044125/http://www.sun.com/smi/Press/sunflash/1997-02/sunflash.970219.0001.xml Version 1.1 press release], Sun.
- extensive retooling of the Abstract Window Toolkit (AWT) event model
- inner classes added to the language
- JavaBeans
- Java Database Connectivity (JDBC)
- Java remote method invocation (RMI) and serialization
- reflection which supported Introspection only, no modification at runtime was possible. (The ability to modify objects reflectively was added in J2SE 1.2, by introducing the {{Javadoc|module=java.base|package=java.lang.reflect|class=AccessibleObject|text=AccessibleObject}} class and its subclasses such as the {{Javadoc|module=java.base|package=java.lang.reflect|class=Field|text=Field}} class.)
- Just-in-time compilation (JIT) on Microsoft Windows platforms, produced for JavaSoft by Symantec
- Internationalization and Unicode support originating from Taligent{{cite news |first=Don |last=Tennant |date=March 15, 1997 |title=Taligent prepares internationalisation technology for the big time |url=http://www2.computerworld.co.nz/article/669327/twitter-makes-global-changes-comply-privacy-laws/ |work=Computerworld |publisher=IDG |access-date=January 16, 2021}}
{{-}}
J2SE 1.2
{{Infobox Java version
| version name = J2SE 1.2
| codename = Playground
| released = {{Start date and age|1998|12|8|df=y|br=yes|paren=yes}}
}}
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:[https://web.archive.org/web/20070816170028/http://www.sun.com/smi/Press/sunflash/1998-12/sunflash.981208.9.xml Version 1.2 press release], Sun.
strictfp
keyword (by JVM 17 an obsolete keyword, should not be used in new code)- The Swing graphical API was integrated into the core classes.
- Sun's JVM was equipped with a JIT compiler for the first time.
- Java plug-in
- Java IDL, an IDL implementation for CORBA interoperability
- Collections framework
{{-}}
J2SE 1.3
{{Infobox Java version
| version name = J2SE 1.3
| released = {{Start date and age|2000|5|8|df=y|br=yes|paren=yes}}
| codename = Kestrel
}}
The most notable changes in the May 8, 2000 release were:[https://web.archive.org/web/20070817053430/http://www.sun.com/smi/Press/sunflash/2000-05/sunflash.20000508.3.xml Version 1.3 press release], Sun.{{Cite web|url=https://java.sun.com/j2se/1.3/docs/relnotes/features.html|archive-url=https://web.archive.org/web/20061107051825/https://java.sun.com/j2se/1.3/docs/relnotes/features.html|url-status=dead|title=Version 1.3 full list of changes|archive-date=November 7, 2006}}
- HotSpot JVM included (the HotSpot JVM was first released in April 1999 for the J2SE 1.2 JVM)
- RMI was modified to support optional compatibility with CORBA.
- Java Naming and Directory Interface (JNDI) included in core libraries (previously available as an extension)
- Java Platform Debugger Architecture (JPDA)
- JavaSound
- Synthetic proxy classes
Java 1.3 is the last release of Java to officially support Microsoft Windows 95.{{cite web|url=https://www.java.com/en/download/help/win95.html |title=How do I run Java on a Windows 95 computer?}}
{{-}}
J2SE 1.4
{{Infobox Java version
| version name = J2SE 1.4
| released = {{Start date and age|2002|2|6|df=y|br=yes|paren=yes}}
| public_support_ended = {{End date|2008|10}}
| paid_support_ended = {{End date|2013|2}}
| codename = Merlin
}}
The February 6, 2002 release was the first release of the Java platform developed under the Java Community Process as [http://www.jcp.org/en/jsr/detail?id=59 JSR 59]. Major changes included:[https://web.archive.org/web/20070815095726/http://www.sun.com/smi/Press/sunflash/2002-02/sunflash.20020206.5.xml Version 1.4 press release].{{Cite web|url=https://java.sun.com/j2se/1.4.2/docs/relnotes/features.html|archive-url=https://web.archive.org/web/20070108015942/https://java.sun.com/j2se/1.4.2/docs/relnotes/features.html|url-status=dead|title=Version full 1.4 list of changes|archive-date=January 8, 2007}}
- Language changes
assert
keyword (specified in [https://web.archive.org/web/20080616233205/http://www.jcp.org/en/jsr/detail?id=41 JSR 41])- 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 [http://www.jcp.org/en/jsr/detail?id=51 JSR 51])
- Logging API (specified in [https://www.jcp.org/en/jsr/detail?id=47 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 [http://www.jcp.org/en/jsr/detail?id=5 JSR 5] and [https://www.jcp.org/en/jsr/detail?id=63 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 [https://www.jcp.org/en/jsr/detail?id=56 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.{{cite web|url=https://www.oracle.com/technetwork/java/javase/system-configurations-139801.html|publisher=Oracle Corporation|access-date=October 22, 2012|year=2010|title=Java 2 Platform 5.0 and Java for Business 5.0}}
{{Anchor|Java 5}}
Java SE 5
{{Infobox Java version
| version name = Java SE 5
| codename = Tiger
| released = {{Start date and age|2004|9|30|df=y|br=yes|paren=yes}}
| public_support_ended = {{End date|2009|11}}
| paid_support_ended = {{End date|2015|4}}
}}
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".{{cite web|title=Version 1.5.0 or 5.0?|url=https://docs.oracle.com/javase/1.5.0/docs/relnotes/version-5.0.html|publisher=Oracle}} This version was developed under [https://www.jcp.org/en/jsr/detail?id=176 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:[https://web.archive.org/web/20080207083457/http://www.sun.com/smi/Press/sunflash/2004-09/sunflash.20040930.1.xml Version 1.5 press release].[https://java.sun.com/j2se/1.5/docs/relnotes/features.html Version 1.5 full list of changes].
- Generics: provides compile-time (static) type safety for collections and eliminates the need for most typecasts (type conversion) (specified by [http://www.jcp.org/en/jsr/detail?id=14 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 [http://www.jcp.org/en/jsr/detail?id=175 JSR 175])
- Autoboxing/unboxing: automatic conversions between primitive types (such as
int
) and primitive wrapper classes (such as {{Javadoc:SE|java/lang|Integer}}) (specified by [http://www.jcp.org/en/jsr/detail?id=201 JSR 201]) - Enumerations: the
enum
keyword creates a typesafe, ordered list of values (such asDay.MONDAY
,Day.TUESDAY
, etc.); previously this could only be achieved by non-typesafe constant integers or manually constructed classes (typesafe enum pattern) (specified by [http://www.jcp.org/en/jsr/detail?id=201 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: thefor
loop syntax is extended with special syntax for iterating over each member of either an array or any {{Javadoc:SE|java/lang|Iterable}}, such as the standard {{Javadoc:SE|java/util|Collection}} classes (specified by [http://www.jcp.org/en/jsr/detail?id=201 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{{cite web |title=JSR 133, 2.4 Why isn't this need met by existing specifications? |url=https://www.jcp.org/en/jsr/detail?id=133 |publisher=Oracle}}
- Static imports
There were also the following improvements to the standard libraries:
- Automatic stub generation for RMI objects
- Swing: New skinnable look and feel, called synth
- The [https://java.sun.com/j2se/1.5.0/docs/guide/concurrency/overview.html concurrency utilities] in package [https://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/package-summary.html
java.util.concurrent
]{{cite book |first=Brian |last=Goetz |year=2006 |title=Java Concurrency in Practice |publisher=Addison-Wesley |isbn=0-321-34960-1 |page=xvii |url-access=registration |url=https://archive.org/details/javaconcurrencyi00goet}} - Scanner class for parsing data from various input streams and buffers
Java 5 is the last release of Java to officially support Microsoft Windows 98 and Windows ME,{{cite web|url=https://www.java.com/en/download/windows98me_manual.jsp |title=Java 5.0 is no longer available on Java.com |publisher=Java.com |date=2009-11-03 |access-date=2016-09-30}} 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.{{cite web|url=http://toastytech.com/guis/miscb2.html |title=Misc Windows 2 – Nathan's Toasty Technology page |first=Nathan |last=Lineback |access-date=2016-09-30}}
Java 5 was first available on Apple Mac OS X 10.4 (Tiger){{cite web |last=Yank |first=Kebin |title=Java 5 available for Mac OS X |url=https://www.sitepoint.com/java-5-available-for-mac-os-x/ |website=Sitepoint |access-date=September 30, 2016 |date=May 3, 2005}} 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:
{{Quote|text=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.|source="Version 1.5.0 or 5.0?", Java release notes{{cite web |title=Version 1.5.0 or 5.0? |url=https://docs.oracle.com/javase/1.5.0/docs/relnotes/version-5.0.html |publisher=Oracle.com |access-date=April 18, 2016}}}}
This correspondence continued through later releases (Java 6 = JDK 1.6, Java 7 = JDK 1.7, and so on).
{{Anchor|Java 6}}
Java SE 6
{{Infobox Java version
| version name = Java SE 6
| codename = Mustang
| released = {{Start date and age|2006|11|11|df=y|br=yes|paren=yes}}
| public_support_ended = {{End date|2013|2}}
}}
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.[http://www.java.com/en/about/brand/naming.jsp Java brand naming]. Internal numbering for developers remains 1.6.0.[https://java.sun.com/javase/6/webnotes/version-6.html Version 6], Java webnotes, Sun.
This version was developed under [http://www.jcp.org/en/jsr/detail?id=270 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:[http://www.sun.com/smi/Press/sunflash/2006-12/sunflash.20061211.1.xml Version 1.6 press release].[https://java.sun.com/javase/6/features.jsp Version 1.6 full list of changes].
- 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.{{citation needed|date=April 2013}} This is believed{{by whom|date=November 2011}} 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,{{usurped|1=[https://web.archive.org/web/20081013044209/http://www.javalobby.org/java/forums/t66270.html Java Lobby]}}.{{Cite web|url=http://weblogs.java.net/blog/opinali/archive/2005/11/mustangs_hotspo.html|archive-url=https://web.archive.org/web/20070102103432/http://weblogs.java.net/blog/opinali/archive/2005/11/mustangs_hotspo.html|url-status=dead|title=Mustang's HotSpot|archive-date=January 2, 2007}} 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).{{cite web
| url = https://blogs.oracle.com/darcy/entry/an_apt_replacement
| title = An apt replacement
| last = Darcy
| first = Joe
| date = 2008-08-03
| access-date = 2009-07-29}}
- 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.{{cite web|url=https://gephi.org/users/install-java-6-mac-os-x-leopard/ |title=Install Java 6 on Mac OS X Leopard | Gephi, open source graph visualization software |publisher=Gephi.org |access-date=2016-09-30}} 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.{{cite web|url=https://www.oracle.com/technetwork/java/eol-135779.html|title=Oracle Java SE Support Roadmap|date=September 19, 2012|access-date=October 22, 2012|publisher=Oracle Corporation}}{{cite web|url=https://www.oracle.com/technetwork/java/javase/7u15-relnotes-1907738.html|title=Auto-update and update through Java Control Panel of JRE 6 will replace JRE 6 with JRE 7|date=February 19, 2013|access-date=March 2, 2013|publisher=Oracle Corporation}} Oracle released two more updates to Java 6 in March and April 2013, which patched some security vulnerabilities.{{cite web|url=https://www.oracle.com/technetwork/java/javase/6u43-relnotes-1915290.html|title=Java SE Development Kit 6, Update 43 Release notes|date=March 4, 2013|access-date=March 4, 2013|publisher=Oracle Corporation}}{{cite web|url=https://www.oracle.com/technetwork/java/javase/6u43-relnotes-1915290.html|title=Java SE Development Kit 6, Update 45 Release notes|date=March 4, 2013|access-date=March 4, 2013|publisher=Oracle Corporation}}
= 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.{{Cite web|url=https://www.oracle.com/technetwork/java/javase/releasenotes-136954.html|title=Java SE 6 Update Release Notes|website=oracle.com}}
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 6 updates | ||
width=160 | Release
! width=100 | Release date ! Highlights | ||
---|---|---|
Java SE 6
| 2006-12-23 | This release adds many enhancements in the fields of Web services, scripting, databases, pluggable annotations, and security, as well as quality, compatibility, and stability. JConsole is now officially supported. Java DB support has been added. | ||
Java SE 6 Update 1{{citation needed|date=June 2023}} | 2007-05-07 | |
Java SE 6 Update 2{{citation needed|date=June 2023}} | 2007-07-03 | |
Java SE 6 Update 3{{citation needed|date=June 2023}} | 2007-10-03 | |
Java SE 6 Update 4{{citation needed|date=June 2023}} | 2008-01-14 | HotSpot VM 10 |
Java SE 6 Update 5{{citation needed|date=June 2023}} | 2008-03-05 | Several security flaws were eliminated. New root certificates from AOL, DigiCert, and TrustCenter are now included. |
Java SE 6 Update 6{{citation needed|date=June 2023}} | 2008-04-16 | A workaround for the infamous Xlib/XCB locking assertion issue was introduced. A memory leak when using Kerberos authentication with LoginContext was fixed. Several other bugs were fixed. |
Java SE 6 Update 7{{citation needed|date=June 2023}} | |
| Unofficially, Java SE 6 Update 7 (1.6.0.7) is the last version of Java that was shown to be working on the Win9x family of operating systems{{citation needed|date=April 2013}} | |
Java SE 6 Update 10{{citation needed|date=June 2023}} | 2008-10-15 | HotSpot VM 11. Major changes for this update include:
|
Java SE 6 Update 11{{cite web| url=http://www.findmysoft.com/news/Sun-Java-6-Update-11-Available-Now-Waiting-on-JavaFX/ | title=Sun Java 6 Update 11 Available Now, Waiting on JavaFX | publisher=FindMySoft.com | access-date=2009-11-13}} {{citation needed|date=June 2023}} | 2008-12-03 | 13 security fixes{{citation needed|date=June 2023}} |
Java SE 6 Update 12{{citation needed|date=June 2023}} | 2008-12-12 | No security fixes; 64-bit Java plug-in (for 64-bit web browsers only); Windows Server 2008 support; performance improvements of graphics and JavaFX applications |
Java SE 6 Update 13{{citation needed|date=June 2023}} | 2009-03-24 | 7 security fixes, JNDI store and retrieve Java objects in LDAP slightly modified, JMX Change (createMBeanunregisterMBean), 4 new root certificates added |
Java SE 6 Update 14{{citation needed|date=June 2023}} | 2009-05-28 | HotSpot VM 14. This release includes extensive performance updates to the JIT compiler, compressed pointers for 64-bit machines, as well as experimental support for the Garbage-First (G1) a low-pause Garbage Collector.{{cite web|url=https://www.infoq.com/news/2008/05/g1|title=JavaOne: Garbage First|publisher=infoq.com|last=Humble|first= Charles|date=2008-05-13|access-date = 2008-09-07}}{{cite web|url=https://blogs.oracle.com/theplanetarium/entry/java_vm_trying_a_new|title=Java VM: Trying a new Garbage Collector for JDK 7|last=Coward|first=Dany|date=2008-11-12|access-date=2012-01-22|url-status=dead|archive-url=https://web.archive.org/web/20111208114910/http://blogs.oracle.com/theplanetarium/entry/java_vm_trying_a_new|archive-date=2011-12-08}}
The Some developers have noticed an issue introduced in this release which causes debuggers to miss breakpoints seemingly randomly.{{cite web|url=https://bugs.eclipse.org/bugs/show_bug.cgi?id=279137#c14|title=Breakpoints fail to hit under JDK 1.6.0_14|access-date=2009-07-14}} Sun has a corresponding bug, which is tracking the issue. The workaround applies to the Client and Server VMs.{{cite web|url=http://bugs.sun.com/view_bug.do?bug_id=6862295|title=Bug ID: 6862295 JDWP threadid changes during debugging session (leading to ignored breakpoints)|access-date=2009-07-22}} Using the |
Java SE 6 Update 15{{citation needed|date=June 2023}} | 2009-08-04 | Introduced patch-in-place functionality |
Java SE 6 Update 16{{citation needed|date=June 2023}} | 2009-08-11 | Fixed the issue introduced in update 14 which caused debuggers to miss breakpoints |
Java SE 6 Update 17{{citation needed|date=June 2023}} | 2009-11-04 | Security fixes; two new root certificates |
Java SE 6 Update 18{{citation needed|date=June 2023}} | 2010-01-13 | No security fixes; Hotspot VM 16; support for Ubuntu 8.04 LTS Desktop Edition, SLES 11, Windows 7, Red Hat Enterprise Linux 5.3, Firefox 3.6, VisualVM 1.2; updated Java DB; many performance improvements |
Java SE 6 Update 19{{citation needed|date=June 2023}} | 2010-03-30 | Security fixes; root certificate changes: seven new, three removed, five replaced with stronger signature algorithms; interim fix for TLS renegotiation attack |
Java SE 6 Update 20{{citation needed|date=June 2023}} | 2010-04-15 | 2 security fixes |
Java SE 6 Update 21{{citation needed|date=June 2023}} | 2010-07-07 | No security fixes; Hotspot VM 17; support for Red Hat Enterprise Linux 5.4 and 5.5, Oracle Enterprise Linux 4.8, 5.4, 5.5; Google Chrome 4 support; support for Customized Loading Progress Indicators; VisualVM 1.2.2 |
Java SE 6 Update 22{{citation needed|date=June 2023}} | 2010-10-12 | 29 security fixes; {{IETF RFC|5746}} support |
Java SE 6 Update 23{{citation needed|date=June 2023}} | 2010-12-08 | No security fixes; Hotspot VM 19; better support for right-to-left languages |
Java SE 6 Update 24{{citation needed|date=June 2023}} | 2011-02-15 | 21 security fixes; updated Java DB |
Java SE 6 Update 25{{citation needed|date=June 2023}} | 2011-03-21 | No security fixes; Hotspot VM 20; support for Internet Explorer 9, Firefox 4 and Chrome 10; improved BigDecimal; includes "tiered" compilation in the Server VM that enables it to start quickly as does the Client VM, while achieving better peak performance (this feature is enabled by specifying -server and -XX:+TieredCompilation command options) |
Java SE 6 Update 26{{citation needed|date=June 2023}} | 2011-06-07 | 17 new security fixes;{{Cite web|url=https://www.oracle.com/security-alerts/javacpujune2011.html|title=Oracle Java SE Critical Patch Update Advisory – June 2011|website=oracle.com}} last version compatible with Windows Vista SP1 |
Java SE 6 Update 27{{citation needed|date=June 2023}} | 2011-08-16 | No security fixes; certification for Firefox 5 |
Java SE 6 Update 29{{citation needed|date=June 2023}} | 2011-10-18 | 20 security fixes, various bug fixes{{Cite web|url=https://www.oracle.com/security-alerts/javacpuoct2011.html|title=Oracle Java SE Critical Patch Update Advisory – October 2011|website=oracle.com}} |
Java SE 6 Update 30{{citation needed|date=June 2023}} | 2011-12-12 | No security fixes; fix for SSL regression in Update 29; support for Red Hat Enterprise Linux 6 |
Java SE 6 Update 31{{citation needed|date=June 2023}} | 2012-02-14 | 14 security fixes and one bug fix; last version work reliably for Windows 2000{{cite web|url=http://www.msfn.org/board/topic/156546-java-6-update-32-fails-to-install/|title=Java 6 Update 32 fails to install...|publisher=MSFN|access-date=2016-07-31|archive-url=https://web.archive.org/web/20160816031428/http://www.msfn.org/board/topic/156546-java-6-update-32-fails-to-install/|archive-date=2016-08-16|url-status=dead}} |
Java SE 6 Update 32{{citation needed|date=June 2023}} | 2012-04-26 | No security fixes, various bug fixes |
Java SE 6 Update 33{{citation needed|date=June 2023}} | 2012-06-12 | 14 security fixes, improved VM configuration file loading |
Java SE 6 Update 34{{citation needed|date=June 2023}} | 2012-08-14 | No security fixes, various bug fixes |
Java SE 6 Update 35{{citation needed|date=June 2023}} | 2012-08-30 | Contains a security-in-depth fix |
Java SE 6 Update 37{{citation needed|date=June 2023}} | 2012-10-16 | 30 security fixes |
Java SE 6 Update 38{{citation needed|date=June 2023}} | 2012-12-11 | Various bug fixes{{citation needed|date=June 2023}} |
Java SE 6 Update 39{{citation needed|date=June 2023}} | 2013-02-01 | 50 security fixes |
Java SE 6 Update 41{{citation needed|date=June 2023}} | 2013-02-19 | 5 security fixes |
Java SE 6 Update 43{{citation needed|date=June 2023}} | 2013-03-04 | 2 security fixes |
Java SE 6 Update 45{{citation needed|date=June 2023}} | 2013-04-16 | 42 security fixes;{{Cite web|url=https://www.oracle.com/security-alerts/javacpuapr2013.html|title=Oracle Java SE Critical Patch Update Advisory – April 2013|website=oracle.com}} other changes; final public update.{{Cite web|url=https://java.com/en/download/faq/why_upgrade.xml|title=Why should I upgrade Java ?|website=java.com}} |
Java SE 6 Update 51 | 2013-06-18 | Not available publicly, only available through the Java SE Support program and in Apple Update for OS X Snow Leopard, Lion & Mountain Lion; up to 40 security fixes{{Cite web|url=https://www.oracle.com/security-alerts/javacpujun2013.html|title=Oracle Java Critical Patch Update – June 2013|website=oracle.com}} |
Java SE 6 Update 65 | 2013-10-15 | Not available publicly, only available through the Java SE Support program and in Apple Update for OS X Snow Leopard, Lion & Mountain Lion; at least 11 critical security fixes{{Cite web|url=https://www.oracle.com/security-alerts/cpuoct2013.html|title=Oracle Critical Patch Update – October 2013|website=oracle.com}} |
Java SE 6 Update 71 | 2014-01-14 | Not available for public download; 33 fixes{{citation needed|date=June 2023}} |
Java SE 6 Update 75 | 2014-04-15 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster no. #54; 25 security fixes{{Cite web|url=https://www.oracle.com/security-alerts/cpuapr2014.html|title=Oracle Critical Patch Update – April 2014|website=oracle.com}} |
Java SE 6 Update 81 | 2014-07-15 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 11 security fixes{{Cite web|url=https://www.oracle.com/security-alerts/cpujul2014.html|title=Oracle Critical Patch Update – July 2014|website=oracle.com}} |
Java SE 6 Update 85 | 2014-10-16 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 18 security fixes{{Cite web|url=https://www.oracle.com/security-alerts/cpuoct2014.html|title=Oracle Critical Patch Update – October 2014|website=oracle.com}} |
Java SE 6 Update 91 | 2015-01-21 | Linux x64 and Windows i586 versions are available as the Java SE 6 Reference Implementation.{{cite web|title=Java SE 6 Reference Implementation|url=https://www.oracle.com/technetwork/java/javase/downloads/javase6ri-2395277.html|publisher=Oracle Corporation|access-date=2016-10-24}} Other versions are only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 15 security fixes{{Cite web|url=https://www.oracle.com/security-alerts/cpujan2015.html|title=Oracle Critical Patch Update Advisory – January 2015|website=oracle.com}} |
Java SE 6 Update 95 | 2015-04-14 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 14 security fixes{{Cite web|url=https://www.oracle.com/security-alerts/cpuapr2015.html|title=Oracle Critical Patch Update – April 2015|website=oracle.com}} |
Java SE 6 Update 101 | 2015-07-15 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 18 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – July 2015|url = https://www.oracle.com/technetwork/topics/security/cpujul2015-2367936.html|access-date = 2015-07-15}} Certification for IE 10 and 11 was introduced in 1.6.0_101 |
Java SE 6 Update 105 | 2015-10-20 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 17 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – October 2015|url = https://www.oracle.com/technetwork/topics/security/cpuoct2015-2367953.html|access-date = 2015-10-20}} |
Java SE 6 Update 111 | 2016-01-20 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 13 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – January 2016|url = https://www.oracle.com/technetwork/topics/security/cpujan2016-2367955.html|access-date = 2016-01-20}} |
Java SE 6 Update 113 | 2016-02-05 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 1 security fix{{cite web|title = Oracle Security Alert for CVE-2016-0603|url = https://www.oracle.com/technetwork/topics/security/alert-cve-2016-0603-2874360.html|access-date = 2016-02-08}} |
Java SE 6 Update 115 | 2016-04-21 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 8 security fixes{{cite web|title = Oracle Critical Patch Update CVSS V2 Risk Matrices – April 2016|url = https://www.oracle.com/technetwork/topics/security/cpuapr2016-2881694.html|access-date = 2016-04-21}} |
Java SE 6 Update 121 | 2016-07-19 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 15 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – July 2016|url = https://www.oracle.com/technetwork/security-advisory/cpujul2016-2881720.html|access-date = 2016-07-19}} |
Java SE 6 Update 131 | 2016-10-18 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 13 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – October 2016|url = https://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html|access-date = 2016-10-18}} |
Java SE 6 Update 141 | 2017-01-17 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 17 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – January 2017|url = https://www.oracle.com/technetwork/security-advisory/cpujan2017-2881727.html|access-date = 2017-01-17}} |
Java SE 6 Update 151 | 2017-04-18 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 10 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – April 2017|url = https://www.oracle.com/technetwork/security-advisory/cpuapr2017-3236618.html|access-date = 2017-04-18}} |
Java SE 6 Update 161 | 2017-07-18 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 5 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – July 2017|url = https://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html|access-date = 2017-07-18}} |
Java SE 6 Update 171 | 2017-10-20 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 7 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – October 2017|url = https://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html|access-date = 2017-10-20}} |
Java SE 6 Update 181 | 2018-01-16 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 12 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – January 2018|url = https://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html|access-date = 2017-10-20}} |
Java SE 6 Update 191 | 2018-04-17 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 7 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – April 2018|url = https://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html|access-date = 2018-04-17}} |
Java SE 6 Update 201 | 2018-07-17 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 3 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – July 2018|url = https://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html|access-date = 2018-07-17}} |
Java SE 6 Update 211 | 2018-10-18 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 8 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – October 2018|url = https://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html|access-date = 2018-10-18}} |
{{Anchor|Java 7}}
Java SE 7
{{Infobox Java version
| version name = Java SE 7
| codename = Dolphin[http://jdk7.java.net/ JDK7] {{Webarchive|url=https://web.archive.org/web/20161215071733/https://jdk7.java.net/ |date=2016-12-15 }}, Sun.
| released = {{Start date and age|2011|7|28|df=y|br=yes|paren=yes}}
| public_support_ended = {{End date|2015|4}}
| paid_support_ended = {{End date|2022|6}}
}}
Java 7 was a major update that launched on July 7, 2011{{cite web|title=Introducing Java 7 Webcast: Moving Java Forward|url=https://www.oracle.com/webapps/events/ns/EventsDetail.jsp?p_eventId=134208&src=7299693&src=7299693&Act=18|publisher=Oracle Corporation|access-date=May 30, 2012|date=July 7, 2011}} and was made available for developers on July 28, 2011.{{Cite web|url=https://openjdk.java.net/projects/jdk7/|title=JDK 7|website=openjdk.java.net}} The development period was organized into thirteen milestones; on June 6, 2011, the last of the thirteen milestones was finished.{{cite web|title=JDK 7 Milestones|url=https://openjdk.java.net/projects/jdk7/milestones/|work=OpenJDK|publisher=Oracle Corporation|access-date=May 30, 2012}} On average, 8 builds (which generally included enhancements and bug fixes) were released per milestone. The [https://openjdk.java.net/projects/jdk7/features/ feature list at the OpenJDK 7 project] lists many of the changes.
Additions in Java 7 include:{{cite web|url=https://puredanger.github.io/tech.puredanger.com/java7|title=Java 7|last=Miller|first=Alex|access-date=2024-02-05}}
- JVM support for dynamic languages, with the new
invokedynamic
bytecode under JSR-292,{{cite web|title=JSR 292: Supporting Dynamically Typed Languages on the Java Platform|url=https://jcp.org/en/jsr/detail?id=292|access-date=August 25, 2013}} following the prototyping work currently done on the Multi Language Virtual Machine - Compressed 64-bit pointers{{cite web|title=Compressed oops in the Hotspot JVM|url=https://wikis.oracle.com/display/HotSpotInternals/CompressedOops|publisher=OpenJDK|access-date = 2012-08-01}} (available in Java 6 with
-XX:+UseCompressedOops
){{cite web |url=https://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html |title=Java HotSpot VM Options |publisher=Oracle |access-date=2013-04-11}} - Project Coin language features:{{cite web|url=https://download.oracle.com/javase/7/docs/technotes/guides/language/enhancements.html#javase7 |title=Java Programming Language Enhancements |publisher=Download.oracle.com |access-date=2013-01-15}}
:* Strings in switch{{cite web|url=https://download.oracle.com/javase/7/docs/technotes/guides/language/strings-switch.html |title=Strings in switch Statements |publisher=Download.oracle.com |access-date=2013-01-15}}
:* Automatic resource management in try-statement aka try-with-resources statement{{cite web|url=https://download.oracle.com/javase/7/docs/technotes/guides/language/try-with-resources.html |title=The try-with-resources Statement |publisher=Download.oracle.com |access-date=2013-01-15}}
:* Improved type inference for generic instance creation, aka the diamond operator <>
{{cite web|url=https://download.oracle.com/javase/7/docs/technotes/guides/language/type-inference-generic-instance-creation.html |title=Type Inference for Generic Instance Creation |publisher=Download.oracle.com |access-date=2013-01-15}}
:* Simplified varargs method declaration{{cite web|url=https://download.oracle.com/javase/7/docs/technotes/guides/language/non-reifiable-varargs.html |title=Improved Compiler Warnings When Using Non-Reifiable Formal Parameters with Varargs Methods |publisher=Download.oracle.com |access-date=2013-01-15}}
:* Binary integer literals{{cite web|url=https://download.oracle.com/javase/7/docs/technotes/guides/language/binary-literals.html |title=Binary Literals |publisher=Download.oracle.com |access-date=2013-01-15}}
:* Allowing underscores in numeric literals{{cite web|url=https://download.oracle.com/javase/7/docs/technotes/guides/language/underscores-literals.html |title=Underscores in Numeric Literals |publisher=Download.oracle.com |access-date=2013-01-15}}
:* Catching multiple exception types and rethrowing exceptions with improved type checking{{cite web|url=https://download.oracle.com/javase/7/docs/technotes/guides/language/catch-multiple.html |title=Catching Multiple Exception Types and Rethrowing Exceptions with Improved Type Checking |publisher=Download.oracle.com |access-date=2013-01-15}}
- Concurrency utilities under JSR 166{{cite web|url=https://gee.cs.oswego.edu/dl/concurrency-interest/index.html|title=Concurrency JSR-166|access-date=2010-04-16}}
- 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
andjava.nio.file.spi
{{cite web|url=https://java.sun.com/docs/books/tutorial/essential/io/fileio.html |title=File I/O (Featuring NIO.2) |publisher=Java.sun.com |date=2008-03-14 |access-date=2013-01-15}}{{cite web|url=https://java.sun.com/docs/books/tutorial/essential/io/legacy.html |title=Legacy File I/O Code |publisher=Java.sun.com |date=2012-02-28 |access-date=2013-01-15}} - 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{{cite web|url=https://openjdk.java.net/projects/jdk7/features/#f650 |title=JDK 7 Features |publisher=OpenJDK |date=2011-07-28 |access-date=2013-03-15}}
- Enhanced library-level support for new network protocols, including SCTP and Sockets Direct Protocol
- Upstream updates to XML and Unicode
- Java deployment rule sets{{cite web |url=https://blogs.oracle.com/java-platform-group/entry/introducing_deployment_rule_sets |title=Introducing Deployment Rule Sets |publisher=Oracle |date=2013-08-21 |access-date=2019-01-22}}
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).{{cite web|url=https://blogs.oracle.com/javaone/resource/java_keynote/slide_16_full_size.gif|title=JavaOne 2011 Keynote|publisher=Oracle|url-status=dead|archive-url=https://web.archive.org/web/20111026122903/http://blogs.oracle.com/javaone/resource/java_keynote/slide_16_full_size.gif|archive-date = 2011-10-26}}
Java 7 was the default version to download on java.com from April 2012 until Java 8 was released.{{cite web|url=https://www.oracle.com/technetwork/java/javase/documentation/autoupdate-1667051.html|title=Java 7 Auto-Update and Java 6|publisher=Oracle}}
= Java 7 updates =
Oracle issued public updates to the Java 7 family on a quarterly basis[https://www.oracle.com/technetwork/topics/security/alerts-086861.html Critical Patch Update table shows four dates per year] until April 2015 when the product reached the end of its public availability.{{cite web |url=https://java.com/en/download/faq/java_7.xml |title=End of Java 7 Public Updates |quote=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.}} Further updates for JDK 7, which continued until July 2022, are only made available to customers with a support contract.{{cite web | url = https://www.oracle.com/technetwork/java/javase/downloads/eol-135779.html | title = Oracle Java SE Support Roadmap | access-date = 2015-01-07 | date = 2014-12-19 | publisher = Oracle Corporation}}
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 7 updates | ||
width=160 | Release
! width=110 | Release date ! Highlights | ||
---|---|---|
Java SE 7{{Cite web|url=https://www.oracle.com/technetwork/java/javase/jdk7-relnotes-429209.html|title=JDK 7 Release Notes|website=oracle.com}} | 2011-07-28 | Initial release; HotSpot VM 21 |
Java SE 7 Update 1{{citation needed|date=June 2023}} | 2011-10-18 | 20 security fixes, other bug fixes |
Java SE 7 Update 2{{citation needed|date=June 2023}} | 2011-12-12 | No security fixes; HotSpot VM 22; reliability and performance improvements; support for Solaris 11 and Firefox 5 and later; JavaFX included with Java SE JDK, improvements for web-deployed applications |
Java SE 7 Update 3{{citation needed|date=June 2023}} | style="white-space:nowrap" |2012-02-14 | 14 security fixes{{Cite web|url=https://www.oracle.com/security-alerts/javacpufeb2012.html|title=Oracle Java SE Critical Patch Update Advisory – February 2012|website=oracle.com}} |
Java SE 7 Update 4{{citation needed|date=June 2023}} | 2012-04-26 | No security updates; HotSpot VM 23; JDK Support for Mac OS X; New Supported Garbage Collector: Garbage-First (G1) |
Java SE 7 Update 5{{citation needed|date=June 2023}} | 2012-06-12 | 14 security fixes{{Cite web|url=https://www.oracle.com/security-alerts/javacpujun2012.html|title=Oracle Java SE Critical Patch Update Advisory – June 2012|website=oracle.com}} |
Java SE 7 Update 6{{citation needed|date=June 2023}} | 2012-08-14 | JavaFX and Java Access Bridge included in Java SE JDK and JRE installation, JavaFX support for touch-enabled monitors and touch pads, JavaFX support for Linux, JDK and JRE Support for Mac OS X, JDK for Linux on ARM{{Cite web|url=https://blogs.oracle.com/java/entry/oracle_releases_java_se_7|archive-url=https://web.archive.org/web/20121027075253/https://blogs.oracle.com/java/entry/oracle_releases_java_se_7|url-status=dead|title=Java SE 7 Update 6 Released|archive-date=October 27, 2012}} |
Java SE 7 Update 7{{citation needed|date=June 2023}} | 2012-08-30 | 4 security fixes{{cite web|title=Oracle Security Alert for CVE-2012-4681|url=https://www.oracle.com/technetwork/topics/security/alert-cve-2012-4681-1835715.html|publisher=Oracle Corporation}} |
Java SE 7 Update 9{{citation needed|date=June 2023}} | 2012-10-16 | 30 security vulnerabilities fixes{{Cite web|url=https://www.oracle.com/security-alerts/javacpuoct2012.html|title=Oracle Java SE Critical Patch Update Advisory – October 2012|website=oracle.com}} |
Java SE 7 Update 10{{citation needed|date=June 2023}} | 2012-12-11 | New security features, such as the ability to disable any Java application from running in the browser and new dialogs to warn you when the JRE is insecure, and bug fixes |
Java SE 7 Update 11{{citation needed|date=June 2023}} | 2013-01-13 | Olson Data 2012i; bugfix for problems with registration of plugin on systems with Stand-alone version of JavaFX Installed, security fixes for {{CVE|2013-0422}};{{cite web|title=Oracle Security Alert for CVE-2013-0422|url=https://www.oracle.com/technetwork/topics/security/alert-cve-2013-0422-1896849.html|publisher=Oracle Corporation}} the default security level for Java applets and web start applications has been increased from "Medium" to "High" |
Java SE 7 Update 13{{Cite web|url=https://www.oracle.com/security-alerts/javacpufeb2013.html|title=Oracle Java SE Critical Patch Update Advisory – February 2013|website=oracle.com}} {{citation needed|date=June 2023}} | 2013-02-01 | 50 security fixes |
Java SE 7 Update 15{{citation needed|date=June 2023}} | 2013-02-19 | 5 security fixes |
Java SE 7 Update 17{{citation needed|date=June 2023}} | 2013-03-04 | 2 security fixes |
Java SE 7 Update 21{{citation needed|date=June 2023}} | 2013-04-16 | Multiple changes including 42 security fixes, a new Server JRE that does not include the plug-in, and the JDK for Linux on ARM |
Java SE 7 Update 25{{citation needed|date=June 2023}} | 2013-06-18 | Multiple changes including 40 security fixes{{Cite web|url=http://www.h-online.com/security/news/item/Oracle-releases-fixes-for-40-Java-holes-1892400.html|title=Oracle releases fixes for 40 Java holes – The H Security: News and Features|website=h-online.com}} |
Java SE 7 Update 40{{citation needed|date=June 2023}} | 2013-09-10 | 621 bug fixes,{{Cite web|url=https://www.oracle.com/technetwork/java/javase/2col/7u40-bugfixes-2007733.html|title=Java SE Development Kit 7 Update 40 Bug Fixes|website=oracle.com}} New security features, hardfloat ARM, Java Mission Control 5.2 and Retina Display support{{Cite web|url=https://blogs.oracle.com/henrik/entry/oracle_jdk_7u40_released_security|archive-url=https://web.archive.org/web/20131002055431/https://blogs.oracle.com/henrik/entry/oracle_jdk_7u40_released_security|url-status=dead|title=Oracle JDK 7u40 released – security features, hardfloat ARM, Java Mission Control and more|archive-date=October 2, 2013}} |
Java SE 7 Update 45{{citation needed|date=June 2023}} | 2013-10-15 | 51 security fixes; protections against unauthorized redistribution of Java applications; restore security prompts; JAXP changes; TimeZone.setDefault change |
Java SE 7 Update 51{{citation needed|date=June 2023}} | 2014-01-14 | 36 security fixes; block JAVA applets without manifest (like Remote console—Java Applet—IBM IMM card, HP iLO card) even if warning dialog is with sentence "will be blocked in next version",[https://www.zdnet.com/article/oracle-to-patch-java-other-products-tuesday/ Oracle to patch Java, other products Tuesday], ZDNet,{{Cite web|url=https://www.oracle.com/security-alerts/cpujan2014.html|title=Oracle Critical Patch Update – January 2014|website=oracle.com}} 17 bug fixes |
Java SE 7 Update 55{{citation needed|date=June 2023}} | 2014-04-15 | 37 security fixes, 19 bug fixes{{Cite web|url=https://www.oracle.com/technetwork/java/javase/2col/7u55-bugfixes-2180733.html|title=Java SE Development Kit 7 Update 55 Bug Fixes|website=oracle.com}} |
Java SE 7 Update 60{{citation needed|date=June 2023}} | 2014-05-28 | Java Mission Control 5.3,{{Cite web|url=https://www.oracle.com/technetwork/java/javase/jmc53-release-notes-2157171.html|title=Java Mission Control 5.3 Release Notes|website=oracle.com}} 130 bug fixes{{Cite web|url=https://www.oracle.com/technetwork/java/javase/2col/7u60-bugfixes-2202029.html|title=Java SE Development Kit 7 Update 60 Bug Fixes|website=oracle.com}} |
Java SE 7 Update 65{{citation needed|date=June 2023}} | 2014-07-15 | 18 bug fixes{{citation needed|date=June 2023}} |
Java SE 7 Update 67{{citation needed|date=June 2023}} | 2014-08-04 | 1 bug fix |
Java SE 7 Update 71{{citation needed|date=June 2023}} | 2014-10-14 | 16 bug fixes{{citation needed|date=June 2023}} |
Java SE 7 Update 72{{citation needed|date=June 2023}} | 2014-10-14 | Same release date with Update 71 as a corresponding Patch Set Update (PSU) for Java SE 7,{{Cite web|url=https://www.oracle.com/technetwork/java/javase/downloads/cpu-psu-explained-2331472.html|title=Java CPU and PSU Releases Explained|website=oracle.com}} 36 bug fixes{{citation needed|date=June 2023}} |
Java SE 7 Update 75{{citation needed|date=June 2023}} | 2015-01-20 | 12 bug fixes,{{citation needed|date=June 2023}} SSLv3 disabled by default |
Java SE 7 Update 76{{citation needed|date=June 2023}} | 2015-01-20 | Same release date with Update 75 as a corresponding Patch Set Update (PSU) for Java SE 7, 97 bug fixes{{citation needed|date=June 2023}} |
Java SE 7 Update 79{{citation needed|date=June 2023}} | 2015-04-14 | 21 security fixes, 6 bug fixes,{{citation needed|date=June 2023}} |
Java SE 7 Update 80{{citation needed|date=June 2023}} | 2015-04-14 | Last public release of Java 7; same release date with Update 79 as a corresponding Patch Set Update (PSU) for Java SE 7, 104 bug fixes{{citation needed|date=June 2023}} |
Java SE 7 Update 85 | 2015-07-15 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 25 security fixes{{Cite web|url=https://www.oracle.com/security-alerts/cpujul2015.html|title=Oracle Critical Patch Update Advisory – July 2015|website=oracle.com}} |
Java SE 7 Update 91 | 2015-10-20 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 20 security fixes{{Cite web|url=https://www.oracle.com/security-alerts/cpuoct2015.html|title=Oracle Critical Patch Update Advisory – October 2015|website=oracle.com}} |
Java SE 7 Update 95
| 2016-01-19 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 8 security fixes{{cite web|title = Oracle Critical Patch Update – January 2016|url = https://www.oracle.com/technetwork/topics/security/cpujan2016-2367955.html#AppendixJAVA|website = www.oracle.com|access-date = 2016-01-20}} | ||
Java SE 7 Update 97
| 2016-02-05 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 1 security fix | ||
Java SE 7 Update 99
| 2016-03-23 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 1 security fix{{cite web|title = Java SE Development Kit 7, Update 99|url = https://www.oracle.com/technetwork/java/javase/documentation/javase7supportreleasenotes-1601161.html|access-date = 2016-03-23}} | ||
Java SE 7 Update 101
| 2016-04-18 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 22 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – April 2016|url = https://www.oracle.com/technetwork/security-advisory/cpuapr2016v3-2985753.html|access-date = 2016-04-18}} | ||
Java SE 7 Update 111
| 2016-07-19 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 36 security fixes | ||
Java SE 7 Update 121
| 2016-10-18 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 32 security fixes | ||
Java SE 7 Update 131
| 2017-01-17 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 34 security fixes | ||
Java SE 7 Update 141
| 2017-04-18 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 8 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – April 2017|url = https://www.oracle.com/technetwork/topics/security/cpuapr2017-3236618.html|access-date = 2017-04-18}} | ||
Java SE 7 Update 151
| 2017-07-18 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 4 security fixes | ||
Java SE 7 Update 161
| 2017-10-20 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 4 security fixes | ||
Java SE 7 Update 171
| 2018-01-16 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 51 security fixes | ||
Java SE 7 Update 181
| 2018-04-17 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 12 security fixes | ||
Java SE 7 Update 191
| 2018-07-17 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 9 security fixes | ||
Java SE 7 Update 201
| 2018-10-18 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 13 security fixes | ||
Java SE 7 Update 211
| 2019-01-15 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 5 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – January 2019|url = https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html|access-date = 2019-04-18}} | ||
Java SE 7 Update 221
| 2019-04-16 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 5 security fixes{{cite web|title = Oracle Critical Patch Update Advisory – April 2019|url = https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html|access-date = 2019-04-18}} | ||
Java SE 7 Update 231
| 2019-07-16 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 6 security fixes{{cite web|url=https://www.oracle.com/security-alerts/cpujul2019.html|title=Oracle Critical Patch Update Advisory – July 2019|access-date=2020-01-07}} | ||
Java SE 7 Update 241
| 2019-10-15 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 15 security fixes{{cite web|url=https://www.oracle.com/security-alerts/cpuoct2019.html|title=Oracle Critical Patch Update Advisory – October 2019|access-date=2020-01-07}} | ||
Java SE 7 Update 251
| 2020-01-14 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 12 security fixes{{cite web|url=https://www.oracle.com/security-alerts/cpujan2020.html|title=Oracle Critical Patch Update Advisory – January 2020|access-date=2021-04-22}} | ||
Java SE 7 Update 261
| 2020-04-14 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 15 security fixes{{cite web|url=https://www.oracle.com/security-alerts/cpuapr2020.html|title=Oracle Critical Patch Update Advisory – April 2020|access-date=2021-04-22}} | ||
Java SE 7 Update 271
| 2020-07-14 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 11 security fixes{{cite web|url=https://www.oracle.com/security-alerts/cpujul2020.html|title=Oracle Critical Patch Update Advisory – July 2020|access-date=2021-04-22}} | ||
Java SE 7 Update 281
| 2020-10-20 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 8 security fixes{{cite web|url=https://www.oracle.com/security-alerts/cpuoct2020.html|title=Oracle Critical Patch Update Advisory – October 2020|access-date=2021-04-22}} | ||
Java SE 7 Update 291
| 2021-01-19 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 1 security fixes{{cite web|url=https://www.oracle.com/security-alerts/cpujan2021.html|title=Oracle Critical Patch Update Advisory – January 2021|access-date=2021-04-22}} | ||
Java SE 7 Update 301
| 2021-04-12 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 11 security fixes{{cite web|url=https://www.oracle.com/security-alerts/cpuapr2021.html|title=Oracle Critical Patch Update Advisory – April 2021|access-date=2021-04-22}} | ||
Java SE 7 Update 311
| 2021-07-20 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 24 bug fixes{{cite web|url=https://www.oracle.com/java/technologies/javase/7-support-relnotes.html#R170_311|title=Release Notes for JDK 7 and JDK 7 Update Releases|access-date=2022-01-25}} | ||
Java SE 7 Update 321
| 2021-10-19 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 16 bug fixes{{cite web|url=https://www.oracle.com/java/technologies/javase/7-support-relnotes.html#R170_321|title=Release Notes for JDK 7 and JDK 7 Update Releases|access-date=2022-01-25}} | ||
Java SE 7 Update 331
| 2022-01-18 | Not available publicly, only available through the Java SE Support program and in Solaris 10's Recommended Patchset Cluster; 18 bug fixes{{cite web|url=https://www.oracle.com/java/technologies/javase/7-support-relnotes.html#R170_331|title=Release Notes for JDK 7 and JDK 7 Update Releases|access-date=2022-01-25}} |
{{Anchor|Java 8}}
Java SE 8 (LTS)
{{Infobox Java version
|version name = Java SE 8
|codename = Spider
|lts = yes
|released = {{Start date and age|2014|3|18|df=y|br=yes|paren=yes}}
|jeps = 8
}}
Java 8 was released on March 18, 2014,{{cite web |url=https://mail.openjdk.java.net/pipermail/jdk8-dev/2013-April/002336.html |title=Proposed new schedule for Java 8 |date=2013-04-18 |access-date=2013-04-19}}{{cite web |url=https://openjdk.java.net/projects/jdk8/ |title=JDK 8 |publisher=OpenJDK |date=2013-04-18 |access-date=2014-01-28}} and included some features that were planned for Java 7 but later deferred.{{cite web |url=https://openjdk.java.net/projects/jdk8/features |title=JDK 8 features |publisher=OpenJDK |date=2014-01-28 |access-date=2014-01-28}}
Work on features was organized in terms of JDK Enhancement Proposals (JEPs).{{cite web |url=https://jcp.org/en/jsr/detail?id=337 |title=JSR 337|access-date=2014-01-30}}
- JSR 335, JEP 126: Language-level support for lambda expressions (officially, lambda expressions; unofficially, closures) under Project Lambda{{cite web|url=https://openjdk.java.net/projects/jdk7/features/#f700|title=Java 7 Features|publisher=Sun Microsystems|date=2010-02-09|access-date=2010-04-16}} and default methods (virtual extension methods){{cite web|url=https://wiki.jvmlangsummit.com/images/7/71/2011_Goetz_Extension.pdf|title=Interface evolution via virtual extension methods|publisher=Brian Goetz|date= 2011-07-20|access-date=2014-03-27}}{{cite web|url= https://www.jcp.org/en/jsr/proposalDetails?id=335|title= Lambda Expressions for the Java Programming Language|publisher=Brian Goetz|date= 2012-10-23|access-date = 2014-03-27}}{{cite web|url= https://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.html|title=The Java Tutorials: Default Methods|publisher=Oracle|access-date= 2014-03-27|archive-url=https://web.archive.org/web/20170523042436/http://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.html|archive-date=2017-05-23|url-status=dead}} which can be used to add methods to interfaces without breaking existing implementations. There was an ongoing debate in the Java community on whether to add support for lambda expressions.{{cite web|url=http://gafter.blogspot.com/2006/08/closures-for-java.html|title=Closures for Java|last=Gafter|first=Neal|date=2006-08-18|access-date=2008-03-09}}{{cite web|url=https://blogs.oracle.com/jag/entry/closures|title=Closures|last=Gosling|first=James|date=2008-01-31|access-date=2008-03-09| archive-url=https://web.archive.org/web/20110722180952/http://blogs.oracle.com/jag/entry/closures|archive-date=2011-07-22|url-status=dead}} Sun later declared that lambda expressions would be included in Java and asked for community input to refine the feature.{{cite web|url=http://mreinhold.org/blog/closures|title=Closures for Java|last=Reinhold|first=Mark|date=2009-11-28|access-date=2009-11-24}} Supporting lambda expressions also enables functional-style operations on streams of elements, such as MapReduce-inspired transformations on collections. Default methods can be used by an author of an API to add new methods to an interface without breaking the old code using it. Although it was not their primary intent, default methods can also be used for multiple inheritance of behavior (but not state).
- {{Java JEP|174|Project Nashorn}}, a JavaScript runtime which can run JavaScript code embedded within applications
- {{Java JEP|104|Annotation on Java types}}
- Unsigned integer arithmetic{{Cite web|url=https://blogs.oracle.com/darcy/unsigned-integer-arithmetic-api-now-in-jdk-8|title=Unsigned Integer Arithmetic API now in JDK 8|first=Joe|last=Darcy|website=blogs.oracle.com}}
- {{Java JEP|120|Repeating annotations}}
- {{Java JEP|150|Date and time API}}
- {{Java JEP|178|Statically-linked JNI libraries}}
- {{Java JEP|153|Launch JavaFX applications}} (direct launching of JavaFX application JARs)
- {{Java JEP|122|Remove the permanent generation}}
Java 8 is not supported on Windows XP{{cite web|url=https://www.oracle.com/technetwork/java/javase/certconfig-2095354.html#os|title=Oracle JDK 8 and JRE 8 Certified System Configurations|publisher=Oracle Corporation|access-date=2014-04-15}} but as of JDK 8 update 25, it can still be installed and run under Windows XP.{{cite web|url=https://blogs.oracle.com/henrik/entry/the_future_of_java_on|title=Updated: The future of Java on Windows XP|publisher=Oracle Corporation|first=Henrik|last=Stahl|quote=JDK 8 is not supported on Windows XP. Early versions of JDK 8 had known issues with the installer on Windows XP 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 Windows XP, 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.|date=2014-07-11|access-date=2014-11-11|url-status=dead|archive-url=https://web.archive.org/web/20141111174328/https://blogs.oracle.com/henrik/entry/the_future_of_java_on|archive-date = 2014-11-11}} 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.{{cite web |first=Tori |last=Wieldt |date=October 27, 2014 |url=https://blogs.oracle.com/java/entry/java_se_8_on_java |title=Java SE 8 on Java.com |work=blog.oracle.com |access-date=November 24, 2014 |archive-url=https://web.archive.org/web/20141129113353/https://blogs.oracle.com/java/entry/java_se_8_on_java |archive-date=November 29, 2014 |url-status=dead }} "Oracle will continue to provide Public Updates and auto updates of Java SE 8, Indefinitely for Personal Users".{{cite web |url=https://www.oracle.com/technetwork/java/javase/eol-135779.html |title=Oracle Java SE Support Roadmap |access-date=2021-02-17}}
= Java 8 updates =
{{Anchor|Java 9}}
Java SE 9
{{Infobox Java version
| version name = Java SE 9
| released = {{Start date and age|2017|9|21|df=y|br=yes|paren=yes}}
| jeps = 9
| public_death = {{End date|2018|3}}
}}
Java SE 9 was made available on September 21, 2017{{cite web|url=https://openjdk.java.net/projects/jdk9/|title=JDK 9|access-date=2017-06-16}} due to controversial acceptance of the current implementation of Project Jigsaw by Java Executive Committee{{cite web|url=https://www.infoworld.com/article/3195180/java/java-modularity-specification-opposed-by-red-hat-ibm-is-voted-down.html|title=Java modularity specification opposed by Red Hat, IBM is voted down|access-date=2017-06-16| publisher=InfoWorld|date=2017-05-09}} 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.{{cite web |url= https://www.theregister.co.uk/2017/07/02/java_9_release_back_on_track/|title=Java 9 release back on track, community votes 'yes' |first=Richard |last=Chirgwin |work=theregister.co.uk |date=July 2, 2017|access-date=2017-07-29}}
- JSR 376: Modularization of the JDK under Project Jigsaw (Java Platform Module System){{cite web|url=https://openjdk.java.net/projects/jigsaw/|title=Project Jigsaw|publisher=OpenJDK}}
{{cite web|url=https://openjdk.java.net/projects/jigsaw/doc/draft-java-module-system-requirements-12|title=Java Module-System Requirements — DRAFT 12|publisher=Oracle}}
{{cite web |last=Krill |first=Paul |date=2012-07-18 |df=mdy |url=https://www.infoworld.com/article/2078598/project-jigsaw-delayed-until-java-9.html |title=Project Jigsaw delayed until Java 9 |work=InfoWorld |access-date=2020-07-15}} - JavaDB was removed from JDK{{cite web|title=Java Platform, Standard Edition Oracle JDK 9 Migration Guide|url=https://docs.oracle.com/javase/9/migrate/toc.htm|website=docs.oracle.com|access-date=15 May 2018}}
- {{Java JEP|193|Variable handles}}, define a standard means to invoke the equivalents of various
java.util.concurrent.atomic
andsun.misc.Unsafe
operations - {{Java JEP|213|Milling Project Coin}}, allow @SafeVarargs on private instance methods; Allow effectively-final variables to be used as resources in the try-with-resources statement; Allow diamond with anonymous classes if the argument type of the inferred type is denotable; Complete the removal, begun in Java SE 8, of underscore from the set of legal identifier names; Support for private methods in interfaces
- {{Java JEP|222|jshell: The Java Shell (Read-Eval-Print Loop)}}: JShell is a REPL command-line interface for the Java language.{{cite web|url=https://openjdk.java.net/projects/kulla/|title=OpenJDK: Project Kulla}}
- {{Java JEP|254|Compact Strings}}
- {{Java JEP|263|HiDPI graphics: automatic scaling and sizing}}
- {{Java JEP|266|More concurrency updates}}, it includes a Java implementation of Reactive Streams,{{Cite web|url=http://cs.oswego.edu/pipermail/concurrency-interest/2015-January/013641.html|title=[concurrency-interest] jdk9 Candidate classes Flow and Submission Publisher|first=Doug|last=Lea|date=January 15, 2015|access-date=December 24, 2015|archive-date=January 20, 2015|archive-url=https://web.archive.org/web/20150120055013/http://cs.oswego.edu/pipermail/concurrency-interest/2015-January/013641.html|url-status=dead}} including a new
Flow
class{{Cite web|url=https://docs.oracle.com/javase/9/docs/api/java/util/concurrent/Flow.html|title=Flow (Java SE 9 & JDK 9 )|website=docs.oracle.com}} that included the interfaces previously provided by Reactive Streams[http://www.infoq.com/news/2015/06/Reactive-Streams-JVM-Version Reactive Streams Releases First Stable Version for JVM] - {{Java JEP|268|XML catalogs}}
- {{Java JEP|282|jlink: The Java Linker}}, create a tool that can assemble and optimize a set of modules and their dependencies into a custom run-time image. It effectively allows to produce a fully usable executable including the JVM to run it
- {{Java JEP|295|Ahead-of-Time Compilation}}, ahead-of-time compilation provided by GraalVM
The first Java 9 release candidate was released on August 9, 2017.{{cite web|url=https://mail.openjdk.java.net/pipermail/jdk9-dev/2017-August/005940.html|title=JDK 9: First Release Candidate|date=2017-08-09|access-date=2017-08-21}} The first stable release of Java 9 was on September 21, 2017.{{cite web|url=https://www.techworld.com/news/developers/java-9-release-date-new-features-3660988/|title=Java 9: Release date and new features|publisher=techworld.com|date=2017-07-21|access-date=2017-09-16|archive-date=2017-12-07|archive-url=https://web.archive.org/web/20171207050626/https://www.techworld.com/news/developers/java-9-release-date-new-features-3660988/|url-status=dead}}
{{cite web|url=https://openjdk.java.net/projects/jdk9/|title=JDK 9|publisher=Oracle Corporation|access-date=2017-09-16}}
= History =
At JavaOne 2011, Oracle discussed features they hoped to release for Java 9 in 2016.{{cite web | url=https://www.networkworld.com/article/938806/mark-your-calendar-java-9-finally-has-a-release-date.html | title=Mark your calendar: Java 9 finally has a release date| date=2015-05-07}} Java 9 should include better support for multi-gigabyte heaps, better native code integration, a different default garbage collector (G1, for "shorter response times"){{Cite web|url=https://jaxenter.com/java-9s-new-garbage-collector-whats-changing-whats-staying-118313.html|title=Java 9's new garbage collector: What's changing? What's staying?|date=June 26, 2015}} and a self-tuning JVM.{{cite web
| url = https://drdobbs.com/blogs/java/231900029
| title = JavaOne: JavaFX 2, Java on iOS}} In early 2016, the release of Java 9 was rescheduled for March 2017{{cite web | url=http://news.filehippo.com/2016/01/java-9-release-date-now-march-2017/ | title=Java 9 Release Date Now March 2017| date=2016-01-05}} and later again postponed four more months to July 2017.{{cite news|url=https://www.theregister.co.uk/2016/09/14/jdk_9_release_delay/|title=JDK 9 release delayed another four months|access-date=2016-10-14| publisher=The Register}}
= Java 9 updates =
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 9 updates ! width=170 | Release ! width=100 | Release date ! Highlights |
Java SE 9{{cite web|url=https://www.oracle.com/java/technologies/javase/9-relnotes.html|title=JDK 9 Release Notes|publisher=oracle.com|date=2017-09-21}}
| 2017-09-21 | Initial release |
Java SE 9.0.1{{cite web|url=https://www.oracle.com/java/technologies/javase/9-0-1-relnotes.html|title=JDK 9.0.1 Release Notes|publisher=oracle.com|date=2017-10-17}}
| 2017-10-17 | New features
Known issues
Changes
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/9-0-1-bugfixes.html|website=oracle.com}} |
Java SE 9.0.4{{cite web|url=https://www.oracle.com/java/technologies/javase/9-0-4-relnotes.html|title=JDK 9.0.4 Release Notes|publisher=oracle.com|date=2018-01-16}}
| 2018-01-16 | New features
Changes
Bug fixes
|url=https://www.oracle.com/java/technologies/javase/9-0-4-bugfixes.html|website=oracle.com}} |
{{Anchor|Java 10}}
Java SE 10
{{Infobox Java version
| version name = Java SE 10
| released = {{Start date and age|2018|3|20|df=y|br=yes|paren=yes}}
| jeps = 12
| public_death = {{End date|2018|9}}
}}
OpenJDK 10 was released on March 20, 2018, with twelve new features confirmed.{{cite web|title=JDK 10|url=https://openjdk.java.net/projects/jdk/10/}} Among these features were:
- {{Java JEP|286|Local-Variable Type Inference}}
- {{Java JEP|296|Consolidate the JDK Forest into a Single Repository}}
- {{Java JEP|304|Garbage-Collector Interface}}
- {{Java JEP|307|Parallel Full GC for G1}}
- {{Java JEP|310|Application Class-Data Sharing}}
- {{Java JEP|312|Thread-Local Handshakes}}
- {{Java JEP|313|Remove the Native-Header Generation Tool (javah)}}
- {{Java JEP|314|Additional Unicode Language-Tag Extensions}}
- {{Java JEP|316|Heap Allocation on Alternative Memory Devices}}
- {{Java JEP|317|Experimental Java-Based JIT Compiler}}
- {{Java JEP|319|Root Certificates}}
- {{Java JEP|322|Time-Based Release Versioning}}
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
var stream = list.stream(); // infers Stream
= Java 10 updates =
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 10 updates ! width=170 | Release ! width=100 | Release date ! Highlights |
Java SE 10{{cite web|url=https://www.oracle.com/java/technologies/javase/10-relnotes.html|title=JDK 10 Release Notes|publisher=oracle.com|date=2018-03-20}}
| 2018-03-20 | Initial release |
Java SE 10.0.1{{cite web|url=https://www.oracle.com/java/technologies/javase/10-0-1-relnotes.html|title=JDK 10.0.1 Release Notes|publisher=oracle.com|date=2018-04-17}}
| 2018-04-17 | New features
Changes
Other notes
Bug fixes |
Java SE 10.0.2{{cite web|url=https://www.oracle.com/java/technologies/javase/10-0-2-relnotes.html|title=JDK 10.0.2 Release Notes|publisher=oracle.com|date=2018-07-17}}
| 2018-07-17 | Changes
Bug fixes
|
{{Anchor|Java 11}}
Java SE 11 (LTS)
{{Infobox Java version
| version name = Java SE 11
| lts = yes
| released = {{Start date and age|2018|9|25|df=y|br=yes|paren=yes}}
| jeps = 17
| removed = Java applets, Java Web Start, JavaFX, JavaEE, and CORBA modules
}}
JDK 11 was released on September 25, 2018 and the version is currently open for bug fixes. It offers LTS, or Long-Term Support. Among others, Java 11 includes a number of new features, such as:{{cite web|last=OpenJDK|title=JDK 11|url=https://openjdk.java.net/projects/jdk/11/}}
- {{Java JEP|181|Nest-Based Access Control}}
- {{Java JEP|309|Dynamic Class-File Constants}}
- {{Java JEP|315|Improve Aarch64 Intrinsics}}
- {{Java JEP|318|Epsilon: A No-Op Garbage Collector}}
- {{Java JEP|320|Remove the Java EE and CORBA Modules}}
- {{Java JEP|321|HTTP Client (Standard)}}
- {{Java JEP|323|Local-Variable Syntax for Lambda Parameters}}
- {{Java JEP|324|Key Agreement with Curve25519 and Curve448}}
- {{Java JEP|327|Unicode 10}}
- {{Java JEP|328|Flight Recorder}}
- {{Java JEP|329|ChaCha20 and Poly1305 Cryptographic Algorithms}}
- {{Java JEP|330|Launch Single-File Source-Code Programs}}
- {{Java JEP|331|Low-Overhead Heap Profiling}}
- {{Java JEP|332|Transport Layer Security (TLS) 1.3}}
- {{Java JEP|333|ZGC: A Scalable Low-Latency Garbage Collector (Experimental)}}
- {{Java JEP|335|Deprecate the Nashorn JavaScript Engine}}
- {{Java JEP|336|Deprecate the Pack200 Tools and API}}
A number of features from previous releases were dropped; in particular, Java applets and Java Web Start are no longer available. JavaFX, Java EE and CORBA modules have been removed from JDK.{{cite web |title=Oracle JDK Migration Guide |url=https://docs.oracle.com/en/java/javase/11/migrate/index.html |website=Oracle Help Center |access-date=27 September 2018}}
= Java 11 updates =
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 11 updates ! width="170" | Release ! width="100" | Release date ! Highlights |
Java SE 11{{cite web|url=https://www.oracle.com/java/technologies/javase/11-relnotes.html|title=JDK 11|publisher=oracle.com|date=2018-09-25}}
| 2018-09-25 | Initial release |
Java SE 11.0.1{{cite web|url=https://www.oracle.com/java/technologies/javase/11-0-1-relnotes.html#R11_0_1|title=JDK 11.0.1 Release Notes|publisher=oracle.com|date=2018-10-16}}
| 2018-10-16 | Changes
Bug fixes
|url=https://www.oracle.com/java/technologies/javase/11-0-1-bugfixes.html|website=oracle.com}} |
Java SE 11.0.2{{cite web |url=https://www.oracle.com/java/technologies/javase/11-0-2-relnotes.html#R11_0_2|title=JDK 11.0.2 Release Notes|publisher=oracle.com|date=2019-01-15}}
| 2019-01-15 | Known issues
Changes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/11-0-2-bugfixes.html|website=oracle.com}} |
Java SE 11.0.3{{cite web|url=https://www.oracle.com/java/technologies/javase/11-0-3-relnotes.html#R11_0_3|title=JDK 11.0.3 Release Notes|publisher=oracle.com|date=2019-04-16}}
| 2019-04-16 | New features
Known issues
Changes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/11-0-3-bugfixes.html|website=oracle.com}} |
Java SE 11.0.4{{cite web|url=https://www.oracle.com/java/technologies/javase/11-0-4-relnotes.html#R11_0_4|title=JDK 11.0.4 Release Notes|publisher=oracle.com|date=2019-07-16}}
| 2019-07-16 | New features
Removed features and options
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/11-0-4-bugfixes.html|website=oracle.com}} |
Java SE 11.0.5{{cite web|url=https://www.oracle.com/java/technologies/javase/11-0-5-relnotes.html#R11_0_5|title=JDK 11.0.5 Release Notes|publisher=oracle.com|date=2019-10-15}}
| 2019-10-15 | New features
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/11-0-5-bugfixes.html|website=oracle.com}} |
Java SE 11.0.6{{cite web|url=https://www.oracle.com/java/technologies/javase/11-0-6-relnotes.html#R11_0_6|title=JDK 11.0.6 Release Notes|publisher=oracle.com|date=2020-01-14}}
| 2020-01-14 | New features
Other notes
Bug fixes
|url=https://www.oracle.com/java/technologies/javase/11-0-6-bugfixes.html|website=oracle.com}} |
Java SE 11.0.7{{cite web|url=https://www.oracle.com/java/technologies/javase/11-0-7-relnotes.html#R11_0_7|title=JDK 11.0.7 Release Notes|publisher=oracle.com|date=2020-04-14}}
| 2020-04-14 | New features
Bug fixes |url=https://www.oracle.com/java/technologies/javase/11-0-7-bugfixes.html|website=oracle.com}} |
Java SE 11.0.8{{Cite web|date=2020-07-14|title=JDK 11.0.8 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-8-relnotes.html#R11_0_8|website=oracle.com}}
| 2020-07-14 | New features
Removed features and options
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/11-0-8-bugfixes.html|website=oracle.com}} |
Java SE 11.0.9{{Cite web|date=2020-10-20|title=JDK 11.0.9 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-9-relnotes.html#R11_0_9|website=oracle.com}}
|2020-10-20 | New features
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/11-0-9-bugfixes.html|website=oracle.com}} |
Java SE 11.0.10{{Cite web|date=2021-01-19|title=JDK 11.0.10 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-10-relnotes.html#R11_0_10|website=oracle.com}}
| 2021-01-19 | New features
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/11-0-10-bugfixes.html|website=oracle.com}} |
Java SE 11.0.11{{Cite web|date=2021-04-20|title=JDK 11.0.11 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-11-relnotes.html#R11_0_11|website=oracle.com}}
| 2021-04-20 | New features
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/11-0-11-bugfixes.html|website=oracle.com}} |
Java SE 11.0.12{{Cite web|date=2021-07-20|title=JDK 11.0.12 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-12-relnotes.html#R11_0_12|website=oracle.com}}
| 2021-07-20 | New features
Removed features and options
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/11-0-12-bugfixes.html|website=oracle.com}} |
Java SE 11.0.13{{Cite web|date=2021-10-19|title=JDK 11.0.13 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-13-relnotes.html#R11_0_13|website=oracle.com}}
| 2021-10-19 | New features
Removed features and options
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/11-0-13-bugfixes.html|website=oracle.com}} |
Java SE 11.0.14{{Cite web|date=2022-01-18|title=JDK 11.0.14 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-14-relnotes.html#R11_0_14|website=oracle.com}}
| 2022-01-18 | New features
Removed features and options
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/11-0-14-bugfixes.html|website=oracle.com}} |
Java SE 11.0.15{{Cite web|date=2022-04-19|title=JDK 11.0.15 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-15-relnotes.html#R11_0_15|website=oracle.com}}
|2022-04-19 |New features
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/11-0-15-bugfixes.html|website=oracle.com}} |
Java SE 11.0.16{{Cite web|date=2022-07-19|title=JDK 11.0.16 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-16-relnotes.html#R11_0_16|website=oracle.com}}
|2022-07-19 | New features
Other notes
Bug fixes |
Java SE 11.0.16.1{{Cite web|date=2022-08-18|title=JDK 11.0.16.1 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-16-relnotes.html#R11_0_16_1|website=oracle.com}}
|2022-08-18 | Changes
|
Java SE 11.0.17{{Cite web|date=2022-10-19|title=JDK 11.0.17 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-17-relnotes.html#R11_0_17|website=oracle.com}}
|2022-10-18 |New features
Other notes
Bug fixes |
Java SE 11.0.18{{Cite web|date=2023-01-17|title=JDK 11.0.18 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-18-relnotes.html#R11_0_18|website=oracle.com}}
|2023-01-17 | New features
Known issues
Other notes
Bug fixes |
Java SE 11.0.19{{Cite web|date=2023-04-18|title=JDK 11.0.19 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-19-relnotes.html#R11_0_19|website=oracle.com}}
|2023-04-18 | New features
Other notes
Bug fixes |
Java SE 11.0.20{{Cite web|date=2023-07-18|title=JDK 11.0.20 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-20-relnotes.html#R11_0_20|website=oracle.com}}
|2023-07-18 | New features
Known issues
Other notes
Bug fixes |
Java SE 11.0.21{{Cite web|date=2023-10-17|title=JDK 11.0.21 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-21-relnotes.html#R11_0_21|website=oracle.com}}
|2023-10-17 | New features
Removed features and options
Other notes
Bug fixes |
Java SE 11.0.22{{Cite web|date=2024-01-16|title=JDK 11.0.22 Release Notes|url=https://www.oracle.com/java/technologies/javase/11-0-22-relnotes.html#R11_0_22|website=oracle.com}}
|2024-01-16 | New features
Known issues
Other notes
Bug fixes |
{{Anchor|Java 12}}
Java SE 12
{{Infobox Java version
| version name = Java SE 12
| released = {{Start date and age|2019|3|19|df=y|br=yes|paren=yes}}
| jeps = 8
| previews = Enhanced switch statements
| public_death = {{End date|2019|9}}
}}
JDK 12 was released on March 19, 2019. Among others, Java 12 includes a number of new features, such as:{{cite web|last=OpenJDK|title= 12|url=https://openjdk.java.net/projects/jdk/12/}}
- {{Java JEP|189|Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)}}
- {{Java JEP|230|Microbenchmark Suite}}
- {{Java JEP|325|Switch Expressions (Preview)}}
- {{Java JEP|334|JVM Constants API}}
- {{Java JEP|340|One AArch64 Port, Not Two}}
- {{Java JEP|341|Default CDS Archives}}
- {{Java JEP|344|Abortable Mixed Collections for G1}}
- {{Java JEP|346|Promptly Return Unused Committed Memory from G1}}
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 =
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 12 updates ! width=170 | Release ! width=100 | Release date ! Highlights |
Java SE 12{{cite web|url=https://www.oracle.com/java/technologies/javase/12-relnotes.html|title=JDK 12 Release Notes|publisher=oracle.com|date=2019-03-19}}
| 2019-03-19 | Initial release |
Java SE 12.0.1{{cite web|url=https://www.oracle.com/java/technologies/javase/12-0-1-relnotes.html|title=JDK 12.0.1 Release Notes|publisher=oracle.com|date=2019-04-16}}
| 2019-04-16 | Known issues
Changes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/12-0-1-bugfixes.html|website=oracle.com}} |
Java SE 12.0.2{{cite web|url=https://www.oracle.com/java/technologies/javase/12-0-2-relnotes.html|title=JDK 12.0.2 Release Notes|publisher=oracle.com|date=2019-07-16}}
| 2019-07-16 | Removed features and options
Other notes
|
{{Anchor|Java 13}}
Java SE 13
{{Infobox Java version
| version name = Java SE 13
| released = {{Start date and age|2019|9|17|df=y|br=yes|paren=yes}}
| jeps = 5
| previews = Enhanced switch statements, text blocks
| public_death = {{End date|2023|3}}{{Cite web |title=Azul Support Roadmap |url=https://www.azul.com/products/azul-support-roadmap/ |access-date=2023-06-28 |website=Azul {{!}} Better Java Performance, Superior Java Support |language=en-US}}
}}
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".{{Cite web|url=https://mail.openjdk.java.net/pipermail/announce/2019-September/000274.html|title=Java 13 / JDK 13: General Availability|first=mark reinhold at|last=oracle.com|date=September 17, 2019}}
- {{Java JEP|350|Dynamic CDS Archives}}
- {{Java JEP|351|ZGC: Uncommit Unused Memory}}
- {{Java JEP|353|Reimplement the Legacy Socket API}}
- {{Java JEP|354|Switch Expressions (Preview)}}
- {{Java JEP|355|Text Blocks (Preview)}}
JEP 355 Text Blocks allows multiline string literals:
String html = """
Hello, world
""";
= Java 13 updates =
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 13 updates ! width=170 | Release ! width=100 | Release date ! Highlights |
Java SE 13{{cite web|url=https://www.oracle.com/java/technologies/javase/13-relnotes.html|title=JDK 13 Release Notes|publisher=oracle.com|date=2019-09-17}}
| 2019-09-17 | Initial release |
Java SE 13.0.1{{cite web|url=https://www.oracle.com/java/technologies/javase/13-0-1-relnotes.html|title=JDK 13.0.1 Release Notes|publisher=oracle.com|date=2019-10-15}}
| 2019-10-15 | Other notes
|
Java SE 13.0.2{{cite web|url=https://www.oracle.com/java/technologies/javase/13-0-2-relnotes.html|title=JDK 13.0.2 Release Notes|publisher=oracle.com|date=2020-01-14}}
| 2020-01-14 | Other notes
Bug fixes
|url=https://www.oracle.com/java/technologies/javase/13-0-2-bugfixes.html|website=oracle.com}} |
{{Anchor|Java 14}}
Java SE 14
{{Infobox Java version
| version name = Java SE 14
| released = {{Start date and age|2020|3|17|df=y|br=yes|paren=yes}}
| jeps = 16
| features = Helpful NullPointerExceptions, enhanced switch statements
| removed = Remove Concurrent Mark Sweep garbage collector
| previews = Pattern matching for instanceof, records, text blocks
| incubating = jpackager, Foreign memory access
| public_death = {{End date|2020|9}}
}}
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".{{Cite web|url=https://mail.openjdk.java.net/pipermail/announce/2020-March/000282.html|title=Java 14 / JDK 14: General Availability|first=mark reinhold at|last=oracle.com|date=March 17, 2020}}
- {{Java JEP|305|Pattern Matching for instanceof (Preview)}}
- {{Java JEP|343|Packaging Tool (Incubator)}}
- {{Java JEP|345|NUMA-Aware Memory Allocation for G1}}
- {{Java JEP|349|JFR Event Streaming}}
- {{Java JEP|352|Non-Volatile Mapped Byte Buffers}}
- {{Java JEP|358|Helpful NullPointerExceptions}}
- {{Java JEP|359|Records (Preview)}}
- {{Java JEP|361|Switch Expressions (Standard)}}
- {{Java JEP|362|Deprecate the Solaris and SPARC Ports}}
- {{Java JEP|363|Remove the Concurrent Mark Sweep (CMS) Garbage Collector}}
- {{Java JEP|364|ZGC on macOS}}
- {{Java JEP|365|ZGC on Windows}}
- {{Java JEP|366|Deprecate the ParallelScavenge + SerialOld GC Combination}}
- {{Java JEP|367|Remove the Pack200 Tools and API}}
- {{Java JEP|368|Text Blocks (Second Preview)}}
- {{Java JEP|370|Foreign-Memory Access API (Incubator)}}
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.{{cite news |last=Evans |first=Ben |title=Records Come to Java |url=https://blogs.oracle.com/javamagazine/records-come-to-java |website=Java Magazine |publisher=Oracle |access-date=10 July 2021 |date=January 10, 2020}}
record Point(int x, int y) { }
Point p = new Point(3, 4);
System.out.println(p.x());
= Java 14 updates =
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 14 updates ! width=170 | Release ! width=100 | Release date ! Highlights |
Java SE 14{{cite web|url=https://www.oracle.com/java/technologies/javase/14-relnotes.html|title=JDK 14 Release Notes|publisher=oracle.com|date=2020-03-17}}
| 2020-03-17 | Initial release |
Java SE 14.0.1{{cite web|url=https://www.oracle.com/java/technologies/javase/14-0-1-relnotes.html|title=JDK 14.0.1 Release Notes|publisher=oracle.com|date=2020-04-14}}
| 2020-04-14 | Bug fixes |url=https://www.oracle.com/java/technologies/javase/14-0-1-bugfixes.html|website=oracle.com}} |
Java SE 14.0.2{{cite web|url=https://www.oracle.com/java/technologies/javase/14-0-2-relnotes.html|title=JDK 14.0.2 Release Notes|publisher=oracle.com|date=2020-07-14}}
| 2020-07-14 | Removed features and options
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/14-0-2-bugfixes.html|website=oracle.com}} |
{{Anchor|Java 15}}
Java SE 15
{{Infobox Java version
| version name = Java SE 15
| released = {{Start date and age|2020|9|15|df=y|br=yes|paren=yes}}
| jeps = 14
| features = Hidden classes, ZGC (garbage collector), Shenandoah (garbage collector), text blocks
| removed = JavaScript engine, Solaris and SPARC ports
| previews = Sealed classes, pattern matching of instanceof, records
| incubating = Foreign-memory access
| public_death = {{End date|2023|3}}
}}
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.
- {{Java JEP|339|Edwards-Curve Digital Signature Algorithm (EdDSA)}}
- {{Java JEP|360|Sealed Classes (Preview)}}
- {{Java JEP|371|Hidden Classes}}
- {{Java JEP|372|Remove the Nashorn JavaScript Engine}}
- {{Java JEP|373|Reimplement the Legacy DatagramSocket API}}
- {{Java JEP|374|Disable and Deprecate Biased Locking}}
- {{Java JEP|375|Pattern Matching for instanceof (Second Preview)}}
- {{Java JEP|377|ZGC: A Scalable Low-Latency Garbage Collector}}
- {{Java JEP|378|Text Blocks}}
- {{Java JEP|379|Shenandoah: A Low-Pause-Time Garbage Collector}}
- {{Java JEP|381|Remove the Solaris and SPARC Ports}}
- {{Java JEP|383|Foreign-Memory Access API (Second Incubator)}}
- {{Java JEP|384|Records (Second Preview)}}
- {{Java JEP|385|Deprecate RMI Activation for Removal}}
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.{{cite web|access-date=2024-06-18|url=https://openjdk.org/projects/amber/design-notes/patterns/pattern-matching-for-java|title=Pattern Matching for Java|author1=Gavin Bierman|author2=Brian Goetz|date=September 2018|website=openjdk.org}}
= Java 15 updates =
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 15 updates ! width=170 | Release ! width=100 | Release date ! Highlights |
Java SE 15{{cite web|url=https://www.oracle.com/java/technologies/javase/15-relnotes.html|title=JDK 15 Release Notes|publisher=oracle.com|date=2020-09-15}}
| 2020-09-15 | Initial release |
Java SE 15.0.1{{cite web|url=https://www.oracle.com/java/technologies/javase/15-0-1-relnotes.html|title=JDK 15.0.1 Release Notes|publisher=oracle.com|date=2020-10-20}}
| 2020-10-20 | New features
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/15-0-1-bugfixes.html|website=oracle.com}} |
Java SE 15.0.2{{cite web|url=https://www.oracle.com/java/technologies/javase/15-0-2-relnotes.html|title=JDK 15.0.2 Release Notes|publisher=oracle.com|date=2021-01-19}}
| 2021-01-19 |Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/15-0-2-bugfixes.html|website=oracle.com}} |
{{Anchor|Java 16}}
Java SE 16
{{Infobox Java version
| version name = Java SE 16
| released = {{Start date and age|2021|3|16|df=y|br=yes|paren=yes}}
| jeps = 17
| features = Windows/AArch64 Port, jpackager, pattern matching for instanceof, records
| previews = Sealed classes
| incubating = Foreign linker, Foreign-memory access
| public_death = {{End date|2021|9}}
}}
JDK 16 was released on March 16, 2021. Java 16 removes Ahead-of-Time compilation (and Graal JIT) options.{{Cite web|title=[JDK-8255616] Removal of experimental features AOT and Graal JIT – Java Bug System|url=https://bugs.openjdk.java.net/browse/JDK-8255616|access-date=2021-02-19|website=bugs.openjdk.java.net}} 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 JEP|338|Vector API (Incubator)}}
- {{Java JEP|347|Enable C++14 Language Features}}
- {{Java JEP|357|Migrate from Mercurial to Git}}
- {{Java JEP|369|Migrate to GitHub}}
- {{Java JEP|376|ZGC: Concurrent Thread-Stack Processing}}
- {{Java JEP|380|Unix-Domain Socket Channels}}
- {{Java JEP|386|Alpine Linux Port}}{{snd}} not yet stable
- {{Java JEP|387|Elastic Metaspace}}
- {{Java JEP|388|Windows/AArch64 Port}}
- {{Java JEP|389|Foreign Linker API (Incubator)}}
- {{Java JEP|390|Warnings for Value-Based Classes}}
- {{Java JEP|392|Packaging Tool}}
- {{Java JEP|393|Foreign-Memory Access API (Third Incubator)}}
- {{Java JEP|394|Pattern Matching for instanceof}}
- {{Java JEP|395|Records}}
- {{Java JEP|396|Strongly Encapsulate JDK Internals by Default}}
- {{Java JEP|397|Sealed Classes (Second Preview)}}
= Java 16 updates =
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 16 updates ! width=170 | Release ! width=100 | Release date ! Highlights |
Java SE 16{{cite web|url=https://www.oracle.com/java/technologies/javase/16-relnotes.html|title=JDK 16 Release Notes|publisher=oracle.com|date=2021-03-16}}
| 2021-03-16 | Initial release |
Java SE 16.0.1{{cite web|url=https://www.oracle.com/java/technologies/javase/16-0-1-relnotes.html|title=JDK 16.0.1 Release Notes|publisher=oracle.com|date=2021-04-20}}
| 2021-04-20 | Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/16-0-1-bugfixes.html|website=oracle.com}} |
Java SE 16.0.2{{cite web|url=https://www.oracle.com/java/technologies/javase/16-0-2-relnotes.html|title=JDK 16.0.2 Release Notes|publisher=oracle.com|date=2021-07-20}}
| 2021-07-20 | Removed features and options
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/16-0-2-bugfixes.html|website=oracle.com}} |
{{Anchor|Java 17}}
Java SE 17 (LTS)
{{Infobox Java version
| version name = Java SE 17
| lts = yes
| released = {{Start date and age|2021|9|14|df=y|br=yes|paren=yes}}
| jeps = 14
| features = macOS/AArch64 Port, sealed classes
| removed = AOT compiler, RMI activation, strictfp
keyword made obsolete (JEP 306)
| previews = Switch pattern matching
| incubating = Vector API, Foreign function & memory API
}}
JDK 17 was released in September 2021.{{Cite web|title=JDK 17|url=https://openjdk.java.net/projects/jdk/17/|access-date=2021-09-17|website=openjdk.java.net}} Java 17 is the 2nd long-term support (LTS) release since switching to the new 6-month release cadence (the first being Java 11).
- {{Java JEP|306|Restore Always-Strict Floating-Point Semantics}}
- {{Java JEP|356|Enhanced Pseudo-Random Number Generators}}
- {{Java JEP|382|New macOS Rendering Pipeline}}
- {{Java JEP|391|macOS/AArch64 Port}}
- {{Java JEP|398|Deprecate the Applet API for Removal}}
- {{Java JEP|403|Strongly Encapsulate JDK Internals}}
- {{Java JEP|406|Pattern Matching for switch (Preview)}}
- {{Java JEP|407|Remove RMI Activation}}
- {{Java JEP|409|Sealed Classes}}
- {{Java JEP|410|Remove the Experimental AOT and JIT Compiler}}
- {{Java JEP|411|Deprecate the Security Manager for Removal}}
- {{Java JEP|412|Foreign Function & Memory API (Incubator)}}
- {{Java JEP|414|Vector API (Second Incubator)}}
- {{Java JEP|415|Context-Specific Deserialization Filters}}
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 =
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 17 updates ! width=170 | Release ! width=100 | Release date ! Highlights |
Java SE 17{{cite web|url=https://www.oracle.com/java/technologies/javase/17-relnotes.html|title=JDK 17 Release Notes|publisher=oracle.com|date=2021-09-14}}
| 2021-09-14 | Initial release |
Java SE 17.0.1{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-1-relnotes.html|title=JDK 17.0.1 Release Notes|publisher=oracle.com|date=2021-10-19}}
| 2021-10-19 | Removed features and options
Other notes
Bug fixes |
Java SE 17.0.2{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-2-relnotes.html|title=JDK 17.0.2 Release Notes|publisher=oracle.com|date=2022-01-18}}
| 2022-01-18 | Removed features and options
Other notes
Bug fixes |
Java SE 17.0.3{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-3-relnotes.html#R17_0_3|title=JDK 17.0.3 Release Notes|publisher=oracle.com|date=2022-04-19}}
| 2022-04-19 | New features
Other notes
Bug fixes |
Java SE 17.0.3.1{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-3-relnotes.html#R17_0_3_1|title=JDK 17.0.3.1 Release Notes|publisher=oracle.com|date=2022-05-02}}
| 2022-05-02 | Changes
Bug fixes |
Java SE 17.0.4{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-4-relnotes.html#R17_0_4|title=JDK 17.0.4 Release Notes|publisher=oracle.com|date=2022-07-19}}
| 2022-07-19 | New features
Other notes
Bug fixes |
Java SE 17.0.4.1{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-4-relnotes.html#R17_0_4_1|title=JDK 17.0.4.1 Release Notes|publisher=oracle.com|date=2022-08-18}}
| 2022-08-18 | Changes
|
Java SE 17.0.5{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-5-relnotes.html#R17_0_5|title=JDK 17.0.5 Release Notes|publisher=oracle.com|date=2022-10-18}}
| 2022-10-18 | New features
Other notes
Bug fixes |
Java SE 17.0.6{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-6-relnotes.html#R17_0_6|title=JDK 17.0.6 Release Notes|publisher=oracle.com|date=2023-01-17}}
| 2023-01-17 | New features
Known issues
Other notes
Bug fixes |
Java SE 17.0.7{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-7-relnotes.html#R17_0_7|title=JDK 17.0.7 Release Notes|publisher=oracle.com|date=2023-04-18}}
| 2023-04-18 | New features
Other notes
Bug fixes |
Java SE 17.0.8{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-8-relnotes.html#R17_0_8|title=JDK 17.0.8 Release Notes|publisher=oracle.com|date=2023-07-18}}
| 2023-07-18 | New features
Known issues
Other notes
Bug fixes |
Java SE 17.0.9{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-9-relnotes.html#R17_0_9|title=JDK 17.0.9 Release Notes|publisher=oracle.com|date=2023-10-17}}
| 2023-10-17 | New features
Removed features and options
Other notes
Bug fixes |
Java SE 17.0.10{{Cite web|date=2024-01-16|title=JDK 17.0.10 Release Notes|url=https://www.oracle.com/java/technologies/javase/17-0-10-relnotes.html#R17_0_10|website=oracle.com}}
|2024-01-16 | New features
Known issues
Other notes
Bug fixes |
Java SE 17.0.11{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-11-relnotes.html|title=JDK 17.0.11 Release Notes|publisher=oracle.com|date=2024-04-16}}
| 2024-04-16 | |
Java SE 17.0.12{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-12-relnotes.html|title=JDK 17.0.12 Release Notes|publisher=oracle.com|date=2024-07-16}}
| 2024-07-16 | |
Java SE 17.0.13{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-13-relnotes.html|title=JDK 17.0.13 Release Notes|publisher=oracle.com|date=2024-10-15}}
| 2024-10-15 | |
Java SE 17.0.14{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-14-relnotes.html|title=JDK 17.0.14 Release Notes|publisher=oracle.com|date=2025-01-21}}
| 2025-01-21 | |
Java SE 17.0.15{{cite web|url=https://www.oracle.com/java/technologies/javase/17-0-15-relnotes.html|title=JDK 17.0.15 Release Notes|publisher=oracle.com|date=2025-04-15}}
| 2025-04-15 | |
{{Anchor|Java 18}}
Java SE 18
{{Infobox Java version
| version name = Java SE 18
| released = {{Start date and age|2022|3|22|df=y|br=yes|paren=yes}}
| jeps = 9
| features = {{ubl|UTF by default|Javadoc code snippets}}
| removed = Deprecated finalization for removal
| previews = Switch pattern matching
| incubating = {{ubl|Vector API|Foreign function & memory API}}
| public_death = {{End date|2022|9}}
}}
JDK 18 was released on March 22, 2022.{{Cite web |title=JDK 18 |url=https://openjdk.org/projects/jdk/18/ |access-date=28 June 2023 |website=openjdk.org}}
- {{Java JEP|400|UTF-8 by Default}}
- {{Java JEP|408|Simple Web Server}}
- {{Java JEP|413|Code Snippets in Java API Documentation}}
- {{Java JEP|416|Reimplement Core Reflection with Method Handles}}
- {{Java JEP|417|Vector API (Third Incubator)}}
- {{Java JEP|418|Internet-Address Resolution SPI}}
- {{Java JEP|419|Foreign Function & Memory API (Second Incubator)}}
- {{Java JEP|420|Pattern Matching for switch (Second Preview)}}
- {{Java JEP|421|Deprecate Finalization for Removal}}
= Java 18 updates =
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 18 updates ! width=170 | Release ! width=100 | Release date ! Highlights |
Java SE 18{{cite web|url=https://www.oracle.com/java/technologies/javase/18-relnotes.html|title=JDK 18 Release Notes|publisher=oracle.com|date=2022-03-22}}
| 2022-03-22 | Initial release |
Java SE 18.0.1{{cite web|url=https://www.oracle.com/java/technologies/javase/18-0-1-relnotes.html#R18_0_1|title=JDK 18.0.1 Release Notes|publisher=oracle.com|date=2022-04-19}}
| 2022-04-19 | New features
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/18-0-1-bugfixes.html|website=oracle.com}} |
Java SE 18.0.1.1{{cite web|url=https://www.oracle.com/java/technologies/javase/18-0-1-relnotes.html#R18_0_1_1|title=JDK 18.0.1.1 Release Notes|publisher=oracle.com|date=2022-05-02}}
| 2022-05-02 | core-libs/java.io
Bug fixes |url=https://www.oracle.com/java/technologies/javase/18-0-1-1-relnotes.html#bugfixes-R18_0_1_1|website=oracle.com}} |
Java SE 18.0.2{{cite web|url=https://www.oracle.com/java/technologies/javase/18-0-2-relnotes.html#R18_0_2|title=JDK 18.0.2 Release Notes|publisher=oracle.com|date=2022-07-19}}
| 2022-07-19 | Removed features and options
Other notes
Bug fixes |url=https://www.oracle.com/java/technologies/javase/18-0-2-relnotes.html#bugfixes-R18_0_2|website=oracle.com}} |
Java SE 18.0.2.1{{cite web|url=https://www.oracle.com/java/technologies/javase/18-0-2-relnotes.html#R18_0_2_1|title=JDK 18.0.2.1 Release Notes|publisher=oracle.com|date=2022-08-18}}
| 2022-08-18 | Changes
|
{{Anchor|Java 19}}
Java SE 19
{{Infobox Java version
| version name = Java SE 19
| released = {{Start date and age|2022|9|20|df=y|br=yes|paren=yes}}
| jeps = 7
| previews = {{ubl|Foreign function & memory API|Switch pattern matching}}
| incubating = {{ubl|Vector API|Structured concurrency}}
| lts = no
| public_death = {{End date|2023|3}}
}}
JDK 19 was released on 20 September 2022.{{Cite web |title=JDK 19 |url=https://openjdk.org/projects/jdk/19/ |access-date=2022-09-19 |website=openjdk.org}}
- {{Java JEP|405|Record Patterns (Preview)}}
- {{Java JEP|422|Linux/RISC-V Port}}
- {{Java JEP|424|Foreign Function & Memory API (Preview)}}
- {{Java JEP|425|Virtual Threads (Preview)}}
- {{Java JEP|426|Vector API (Fourth Incubator)}}
- {{Java JEP|427|Pattern Matching for switch (Third Preview)}}
- {{Java 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.
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 =
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 19 updates ! width=170 | Release ! width=100 | Release date ! Highlights |
Java SE 19{{cite web|url=https://www.oracle.com/java/technologies/javase/19-relnote-issues.html|title=JDK 19 Release Notes|publisher=oracle.com|date=2022-09-20}}
| 2022-09-20 | Initial release |
Java SE 19.0.1{{cite web|url=https://www.oracle.com/java/technologies/javase/19-0-1-relnotes.html|title=JDK 19.0.1 Release Notes|publisher=oracle.com|date=2022-10-18}}
| 2022-10-18 | Other notes
Bug fixes |
Java SE 19.0.2{{cite web|url=https://www.oracle.com/java/technologies/javase/19-0-2-relnotes.html|title=JDK 19.0.2 Release Notes|publisher=oracle.com|date=2023-01-17}}
| 2023-01-17 | New features
Other notes
Bug fixes |
{{Anchor|Java 20}}
Java SE 20
{{Infobox Java version
| version name = Java SE 20
| lts = no
| released = {{Start date and age|2023|3|21|df=y|br=yes|paren=yes}}
| jeps = 7
| incubating = Scoped values
| public_support_ended = {{End date|2023|9}}
}}
Java 20 was released on 21 March 2023.{{Cite web |title=JDK 20 |url=https://openjdk.org/projects/jdk/20/ |access-date=2023-04-21 |website=openjdk.org}} All JEPs were either incubators or previews.
- {{Java JEP|429|Scoped Values (Incubator)}}
- {{Java JEP|432|Record Patterns (Second Preview)}}
- {{Java JEP|433|Pattern Matching for switch (Fourth Preview)}}
- {{Java JEP|434|Foreign Function & Memory API (Second Preview)}}
- {{Java JEP|436|Virtual Threads (Second Preview)}}
- {{Java JEP|437|Structured Concurrency (Second Incubator)}}
- {{Java JEP|438|Vector API (Fifth Incubator)}}
= Java 20 updates =
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 20 updates ! width=170 | Release ! width=100 | Release date ! Highlights |
Java SE 20{{cite web|url=https://www.oracle.com/java/technologies/javase/20-relnote-issues.html|title=JDK 20 Release Notes|publisher=oracle.com|date=2023-03-21}}
| 2023-03-21 | Initial release |
Java SE 20.0.1{{cite web|url=https://www.oracle.com/java/technologies/javase/20-0-1-relnotes.html#R20_0_1|title=JDK 20.0.1 Release Notes|publisher=oracle.com|date=2023-04-18}}
| 2023-04-18 | Other notes
Bug fixes |
Java SE 20.0.2{{cite web|url=https://www.oracle.com/java/technologies/javase/20-0-2-relnotes.html#R20_0_2|title=JDK 20.0.2 Release Notes|publisher=oracle.com|date=2023-07-18}}
| 2023-07-18 | New features
Known issues
Other notes
Bug fixes |
{{Anchor|Java 21}}
Java SE 21 (LTS)
{{Infobox Java version
| version name = Java SE 21
| lts = yes
| released = {{Start date and age|2023|9|19|df=y|br=yes|paren=yes}}
| jeps = 15
| features = Record patterns, pattern matching for switch, virtual threads
| previews = String templates, unnamed classes and main methods
| incubating = Vector API
}}
Java 21 was released on 19 September 2023.{{Cite web |title=JDK 21 |url=https://openjdk.org/projects/jdk/21/ |access-date=June 12, 2023 |website=OpenJDK}} 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:
- {{Java JEP|430|String Templates (Preview)}}
- {{Java JEP|431|Sequenced Collections}}
- {{Java JEP|439|Generational ZGC}}
- {{Java JEP|440|Record Patterns}}
- {{Java JEP|441|Pattern Matching for switch}}
- {{Java JEP|442|Foreign Function & Memory API (Third Preview)}}
- {{Java JEP|443|Unnamed Patterns and Variables (Preview)}}
- {{Java JEP|444|Virtual Threads}}
- {{Java JEP|445|Unnamed Classes and Instance Main Methods (Preview)}}
- {{Java JEP|446|Scoped Values (Preview)}}
- {{Java JEP|448|Vector API (Sixth Incubator)}}
- {{Java JEP|449|Deprecate the Windows 32-bit x86 Port for Removal}}
- {{Java JEP|451|Prepare to Disallow the Dynamic Loading of Agents}}
- {{Java JEP|452|Key Encapsulation Mechanism API}}
- {{Java 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 =
class="wikitable mw-collapsible mw-collapsed"
|+ class="nowrap" | Table of Java 21 updates ! width=170 | Release ! width=100 | Release date ! Highlights |
Java SE 21{{cite web|url=https://www.oracle.com/java/technologies/javase/21-relnote-issues.html|title=JDK 21 Release Notes|publisher=oracle.com|date=2023-09-19}}
| 2023-09-19 | Initial release |
Java SE 21.0.1{{cite web|url=https://www.oracle.com/java/technologies/javase/21-0-1-relnotes.html|title=JDK 21.0.1 Release Notes|publisher=oracle.com|date=2023-10-17}}
| 2023-10-17 | Other notes
Bug fixes |
Java SE 21.0.2{{Cite web|date=2024-01-16|title=JDK 21.0.2 Release Notes|url=https://www.oracle.com/java/technologies/javase/21-0-2-relnotes.html|website=oracle.com}}
|2024-01-16 | New features
Known issues
Issues fixed
Other notes
Bug fixes |
Java SE 21.0.3{{Cite web|date=2024-04-16|title=JDK 21.0.3 Release Notes|url=https://www.oracle.com/java/technologies/javase/21-0-3-relnotes.html|website=oracle.com}}
|2024-04-16 | New features
Known issues
Other notes
Updates to Third Party Libraries
Bug fixes |
Java SE 21.0.4{{Cite web|date=2024-07-16|title=JDK 21.0.4 Release Notes|url=https://www.oracle.com/java/technologies/javase/21-0-4-relnotes.html|website=oracle.com}}
|2024-07-16 | |
Java SE 21.0.5{{Cite web|date=2024-10-15|title=JDK 21.0.5 Release Notes|url=https://www.oracle.com/java/technologies/javase/21-0-5-relnotes.html|website=oracle.com}}
|2024-10-15 | |
Java SE 21.0.6{{Cite web|date=2025-01-21|title=JDK 21.0.6 Release Notes|url=https://www.oracle.com/java/technologies/javase/21-0-6-relnotes.html|website=oracle.com}}
|2025-01-21 | |
Java SE 21.0.7{{Cite web|date=2025-04-15|title=JDK 21.0.7 Release Notes|url=https://www.oracle.com/java/technologies/javase/21-0-7-relnotes.html|website=oracle.com}}
|2025-04-15 | |
{{anchor|Java 22}}
Java SE 22
{{Infobox Java version
| version name = Java SE 22
| released = {{Start date and age|2024|3|19|df=y|br=yes|paren=yes}}
| lts = no
| jeps = 12
| public_support_ended = {{End date|2024|9}}
| features = Foreign function and memory API, unnamed variables and patterns
| previews = Structured concurrency, string templates
| incubating = Vector API
}}
Java 22 was released on March 19, 2024.{{Cite web |title=JDK 22 |url=https://openjdk.org/projects/jdk/22/ |access-date=April 10, 2024 |website=OpenJDK}}{{Cite web |title=Oracle Releases Java 22 |url=https://www.oracle.com/news/announcement/oracle-releases-java-22-2024-03-19/ |access-date=2024-03-20 |website=oracle.com}} The following features, or JEPs, were added with this release:
- {{Java JEP|423|Region Pinning for G1}}
- {{Java JEP|447|Statements before super(...) (Preview)}}
- {{Java JEP|454|Foreign Function & Memory API}}
- {{Java JEP|456|Unnamed Variables & Patterns}}
- {{Java JEP|457|Class-File API (Preview)}}
- {{Java JEP|458|Launch Multi-File Source-Code Programs}}
- {{Java JEP|459|String Templates (Second Preview)}}
- {{Java JEP|460|Vector API (Seventh Incubator)}}
- {{Java JEP|461|Stream Gatherers (Preview)}}
- {{Java JEP|462|Structured Concurrency (Second Preview)}}
- {{Java JEP|463|Implicitly Declared Classes and Instance Main Methods (Second Preview)}}
- {{Java JEP|464|Scoped Values (Second Preview)}}
An API related to Java's threading implementation, java.lang.Thread.countStackFrames
, was removed.{{Cite web |title=Remove Thread.countStackFrames |url=https://bugs.openjdk.org/browse/JDK-8309196 |access-date=2024-04-16 |website=bugs.openjdk.org}}{{Cite web |title=Java SE 22 (JSR 397) |url=https://cr.openjdk.org/~iris/se/22/latestSpec/#APIs-removed |access-date=2024-04-16 |website=cr.openjdk.org}}
{{clear}}
{{anchor|Java 23}}
Java SE 23
{{Infobox Java version
| version name = Java SE 23
| released = {{Start date and age|2024|9|17|df=y|br=yes|paren=yes}}
| jeps = 12
| features = Markdown documentation comments
| previews = 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
| incubating = Vector API
| supported = yes
}}
Java 23 was released on September 17, 2024,{{Cite web |title=Java SE 23 Platform JSR 398 |url=https://openjdk.org/projects/jdk/23/spec/ |access-date=2024-01-17 |website=openjdk.org}}{{Cite web |title=JDK 23 |url=https://openjdk.org/projects/jdk/23/ |access-date=2024-08-28 |website=openjdk.org}}{{Cite web |title=Oracle Releases Java 23 |url=https://www.oracle.com/news/announcement/oracle-releases-java-23-2024-09-17/ |access-date=2024-09-17 |website=oracle.com}} with the following JEPs:
- {{Java JEP|455|Primitive Types in Patterns, instanceof, and switch (Preview)}}
- {{Java JEP|466|Class-File API (Second Preview)}}
- {{Java JEP|467|Markdown Documentation Comments}}
- {{Java JEP|469|Vector API (Eighth Incubator)}}
- {{Java JEP|473|Stream Gatherers (Second Preview)}}
- {{Java JEP|471|Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal}}
- {{Java JEP|474|ZGC: Generational Mode by Default}}
- {{Java JEP|476|Module Import Declarations (Preview)}}
- {{Java JEP|477|Implicitly Declared Classes and Instance Main Methods (Third Preview)}}
- {{Java JEP|480|Structured Concurrency (Third Preview)}}
- {{Java JEP|481|Scoped Values (Third Preview)}}
- {{Java 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.{{Cite mailing list |last=Bierman |first=Gavin |title=Update on String Templates (JEP 459) |mailing-list=Amber Expert Group |date=2024-04-05 |url=https://mail.openjdk.org/pipermail/amber-spec-experts/2024-April/004106.html |access-date=2024-09-25}}
{{clear}}
{{Anchor|Java 24}}
Java SE 24
{{Infobox Java version
| version name = Java SE 24
| released = {{Start date and age|2025|3|18|df=y|br=yes|paren=yes}}
| jeps = 24
| supported = yes
}}
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.{{Cite web |title=Java SE 24 Platform JSR 399 |url=https://openjdk.org/projects/jdk/24/spec/ |access-date=2024-09-25 |website=openjdk.org}}
The following JEPs were targeted to this version of Java SE:{{cite web |url=https://openjdk.org/projects/jdk/24/ |title=JDK 24 |website=OpenJDK |publisher=Oracle Corporation |access-date=November 9, 2024}}
- {{Java JEP|404|Generational Shenandoah (Experimental)}}
- {{Java JEP|450|Compact Object Headers (Experimental)}} (formerly known as Project Lilliput)
- {{Java JEP|472|Prepare to Restrict the Use of JNI}}
- {{Java JEP|475|Late Barrier Expansion for G1}}
- {{Java JEP|478|Key Derivation Function API (Preview)}}
- {{Java JEP|479|Remove the Windows 32-bit x86 Port}}
- {{Java JEP|483|Ahead-of-Time Class Loading & Linking}}
- {{Java JEP|484|Class-File API}}
- {{Java JEP|485|Stream Gatherers}}
- {{Java JEP|486|Permanently Disable the Security Manager}}
- {{Java JEP|487|Scoped Values (Fourth Preview)}}
- {{Java JEP|488|Primitive Types in Patterns, instanceof, and switch (Second Preview)}}
- {{Java JEP|489|Vector API (Ninth Incubator)}}
- {{Java JEP|490|ZGC: Remove the Non-Generational Mode}}
- {{Java JEP|491|Synchronize Virtual Threads without Pinning}}
- {{Java JEP|492|Flexible Constructor Bodies (Third Preview)}}
- {{Java JEP|493|Linking Run-Time Images without JMODs}}
- {{Java JEP|494|Module Import Declarations (Second Preview)}}
- {{Java JEP|495|Simple Source Files and Instance Main Methods (Fourth Preview)}}
- {{Java JEP|496|Quantum-Resistant Module-Lattice-Based Key Encapsulation Mechanism}}
- {{Java JEP|497|Quantum-Resistant Module-Lattice-Based Digital Signature Algorithm}}
- {{Java JEP|498|Warn upon Use of Memory-Access Methods in sun.misc.Unsafe}}
- {{Java JEP|499|Structured Concurrency (Fourth Preview)}}
- {{Java JEP|501|Deprecate the 32-bit x86 Port for Removal}}
{{Clear}}
{{Anchor|Java 25}}
Java SE 25 (LTS)
{{Infobox Java version
| version name = Java SE 25
| lts = yes
| released = {{Start date and age|2025|9|df=y|br=yes|paren=yes}}
| jeps = 0
| unreleased = yes
}}
{{As of|2024|December}}, the specification for Java 25 has not yet been finalized. Java 25 is scheduled for release in September 2025.{{Cite web |title=Java SE 25 Platform JSR 400 |url=https://openjdk.org/projects/jdk/25/spec/ |access-date=2024-12-15 |website=openjdk.org}}
{{Clear}}
Future features
- [https://openjdk.java.net/projects/valhalla/ 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.
- [https://openjdk.java.net/projects/panama/ 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 [https://openjdk.org/jeps/454 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.
- [https://wiki.openjdk.org/display/lilliput 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:
- [https://openjdk.org/projects/crac/ Project CRaC] enables making snapshots of whole JVM (together with the running application) and restoring it with necessary adjustments (reopening files, sockets, etc).
- [https://openjdk.org/projects/leyden/ 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.
- [https://openjdk.org/projects/babylon/ 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{{Cite web|url=https://developer.ibm.com/javasdk/downloads/|title=Downloads – Overview|date=July 18, 2016}} 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.
References
{{reflist|refs=
{{Cite web|url=https://www.azul.com/products/azul-support-roadmap|title=Azul JDK roadmap}}
{{Cite web|url=https://aws.amazon.com/corretto/faqs|title = Amazon Corretto support calendar}}
{{Cite web|url=https://bell-sw.com/support/#roadmap|title = Liberica JDK roadmap}}
{{Cite web|url=https://adoptium.net/support|title = Eclipse Temurin Release Roadmap}}
}}
External links
- [https://www.oracle.com/java/technologies/downloads/ Official Java SE Downloads]
- [https://www.oracle.com/java/technologies/java-se-support-roadmap.html Sun Java Supported versions and EOL]
- [https://www.oracle.com/java/technologies/downloads/archive/ Downloads archive for older version of Java]
- [https://www.java.com/releases/ JDK Releases]
- [https://javaalmanac.io/ The Java Version Almanac]
{{Java (software platform)}}