JDK 21 (LTS) |
2023-SEP |
Pattern Matching for Records & switch , Sequenced Collections, Virtual Thread
CDS (Class Data Sharing), jwebserver
deprecations: Object.finalize() , Applets & Security Manager
preview: String templates, Scoped Values, Foreign Function & Memory API, unnamed classes/instance main |
17 (LTS) |
2021-SEP |
supported by Spring 6 & Spring Boot 3
Records, switch expressions, "helpful" NullPointerExceptions, Text Blocks, Pattern Matching for instanceof , Sealed Classes
enhance: Records (may be member of inner class), add Stream.toList() , packaging tool
stronger encapsulation of internals (com.sun.*, jdk.*, org.* )
extract Nashorn (JavaScript engine)
incubator Vector API (SIMD: single instruction, multiple data) |
11 (LTS) |
2018-SEP |
enhance String/Collection/Files/Optional
run single-file without compile, tool "Flight Recorder" (JVM/OS events & visualizer)
deprecate EE/CORBA/Nashorn/applets/JavaFX |
10 |
2017 |
local variable type inference (var list = new ArrayList<String>(); ) |
9 |
2017-SEP |
Project Jigsaw (module system)
enhance Collection/Stream/Process, interface private methods
tools: jshell , jlink |
8 |
2014-MAR |
Streams, Lambdas, default methods, Optional
JavaScript (Nashorn runtime), Date & time API updates |
7 |
2011-JUL |
switch Strings, try-with-resources, diamond operator, dynamic lang support (invokedynamic ),
|
6 |
2006-DEC |
performance, enhance annotations, upgrade JAXB (StAX parser), JDBC4, Rhino JavaScript engine |
5 |
2004-SEP |
Generics (type casts/conversions), Autoboxing (convert primitives to objects & back)
Annotations, Enumerations (enum ), varargs (String… lines), enhanced for..each, static imports, java.util.concurrent |
1.4 |
2002-FEB |
RegEx, logging API, JAXP (XML support), exception chaining
assert keyword, NIO (non-blocking IO), java.util.prefs , integrated security/crypto libs |
1.3 |
2000-MAY |
JNDI, JavaSound, RMI compatibility with CORBA, JPDA debugger API |
1.2 |
1998-DEC |
Collections framework, Swing UI, strictfp keyword, Java IDL (CORBA support) |
1.1 |
1997-FEB |
JDBC, JavaBeans, AWT, Inner classes, RMI, read-only reflection |
1.0.2 |
1996-JAN |
browser "WebRunner", networking |