Every Java version, and what it added

From JDK 1.0 in 1996 to Java 27 in 2026. Search for a feature to find the version that introduced it, or plan an upgrade between any two versions.

Upgrade planner

See everything you gain, and everything that was removed, between two versions.

Java 25 to 27 spans 2 releases, with 7 finished features to adopt and 2 removals or restrictions to check before you migrate.

Libraries and APIs (1)

  • HTTP/3 in the HTTP Client API Java 26

JVM, GC and performance (4)

  • Ahead-of-time object caching works with any GC, including ZGC Java 26
  • G1 throughput improved by reducing synchronization Java 26
  • G1 is the default garbage collector in every environment Java 27
  • Compact object headers on by default Java 27

Tools (1)

  • JFR redacts sensitive data in-process Java 27

Security (1)

  • Post-quantum hybrid key exchange for TLS 1.3 Java 27

Check before migrating (2)

  • Warnings when deep reflection mutates final fields Java 26
  • Applet API removed Java 26

28 releases since 1996, newest first.

28
JDK 28
Planned for Mar 2027
Targeted, may change
27
Java SE 27
Released 15 Sep 2026
Newer than your JDK
26
Java SE 26
Released 17 Mar 2026
Newer than your JDK
25
Java SE 25
Released 16 Sep 2025
LTSYour JDK
What Java 25 code looks like
void main() {
    String name = IO.readln("Your name: ");
    IO.println("Hello, " + name);
}
24
Java SE 24
Released 18 Mar 2025
Available to you
What Java 24 code looks like
List<List<Integer>> batches = Stream.of(1, 2, 3, 4, 5, 6, 7)
    .gather(Gatherers.windowFixed(3))
    .toList();   // [[1, 2, 3], [4, 5, 6], [7]]
23
Java SE 23
Released 17 Sep 2024
Available to you
22
Java SE 22
Released 19 Mar 2024
Available to you
What Java 22 code looks like
try {
    Integer.parseInt(input);
    return true;
} catch (NumberFormatException _) {   // unnamed variable
    return false;
}
21
Java SE 21
Released 19 Sep 2023
LTSAvailable to you
What Java 21 code looks like
try (var executor = Executors.newVirtualThreadPerTaskExecutor()) {
    requests.forEach(r -> executor.submit(() -> handle(r)));
}
20
Java SE 20
Released 21 Mar 2023
Available to you

No finished features in this release; it only previewed or incubated 7 features. Turn on “Include previews and incubators” to see them.

19
Java SE 19
Released 20 Sep 2022
Available to you
18
Java SE 18
Released 22 Mar 2022
Available to you
17
Java SE 17
Released 14 Sep 2021
LTSAvailable to you
What Java 17 code looks like
sealed interface Payment permits Upi, Card {}
record Upi(String vpa) implements Payment {}
record Card(String last4) implements Payment {}
16
Java SE 16
Released 16 Mar 2021
Available to you
What Java 16 code looks like
record Point(int x, int y) {}

if (obj instanceof Point p) {
    System.out.println(p.x());
}
15
Java SE 15
Released 15 Sep 2020
Available to you
What Java 15 code looks like
String sql = """
    SELECT id, title
    FROM course
    WHERE level = ?
    """;
14
Java SE 14
Released 17 Mar 2020
Available to you
What Java 14 code looks like
String kind = switch (day) {
    case SATURDAY, SUNDAY -> "Weekend";
    default -> "Weekday";
};
13
Java SE 13
Released 17 Sep 2019
Available to you
12
Java SE 12
Released 19 Mar 2019
Available to you
11
Java SE 11
Released 25 Sep 2018
LTSAvailable to you
What Java 11 code looks like
var client = HttpClient.newHttpClient();
var req = HttpRequest.newBuilder(URI.create("https://api.example.com/courses")).build();
String body = client.send(req, HttpResponse.BodyHandlers.ofString()).body();
10
Java SE 10
Released 20 Mar 2018
Available to you
What Java 10 code looks like
var lessonsByCourse = new HashMap<String, List<Lesson>>();
9
Java SE 9
Released 21 Sep 2017
Available to you
What Java 9 code looks like
List<String> langs = List.of("Java", "Kotlin", "Scala");
Map<String, Integer> ports = Map.of("http", 80, "https", 443);
8
Java SE 8
Released 18 Mar 2014
LTSAvailable to you
What Java 8 code looks like
names.stream()
     .filter(n -> n.startsWith("A"))
     .map(String::toUpperCase)
     .forEach(System.out::println);
7
Java SE 7, “Dolphin”
Released 28 Jul 2011
Available to you
What Java 7 code looks like
try (BufferedReader r = Files.newBufferedReader(path)) {
    return r.readLine();
}   // r is closed automatically
6
Java SE 6, “Mustang”
Released 11 Dec 2006
Available to you
5
J2SE 5.0, “Tiger”
Released 30 Sep 2004
Available to you
What Java 5 code looks like
List<String> names = new ArrayList<String>();
for (String n : names) {
    System.out.printf("Hello %s%n", n);
}
1.4
J2SE 1.4, “Merlin”
Released 6 Feb 2002
Available to you
1.3
J2SE 1.3, “Kestrel”
Released 8 May 2000
Available to you
1.2
J2SE 1.2, “Playground”
Released 8 Dec 1998
Available to you
1.1
JDK 1.1
Released 19 Feb 1997
Available to you
1.0
JDK 1.0
Released 23 Jan 1996
Available to you