GitHub
The Java Version Almanac
javaalmanac.io
Feedback on this page?

Java 18

Status End of Life
Release Date 2022-03-22
EOL Date 2022-09-20
Latest Version 18.0.2.1
Umbrella JSR JSR 393
Class File Version 62.0
Unicode Version 13.0.0
API Changes Compare to 17 - 16 - 15 - 14 - 13 - 12 - 11 - 10 - 9 - 8 - 7 - 6 - 5 - 1.4 - 1.3 - 1.2 - 1.1 - 1.0
Documentation JavaDoc, Language Spec, VM Spec, Tools, Release Notes
SCM git
OpenJDK Updates
2022-08-18 → 18.0.2.1
2022-07-15 → 18.0.2
2022-04-25 → 18.0.1.1
2022-04-12 → 18.0.1
2022-03-22 → 18

New Features

Here are all new features in Java 18 by category. There is also of list of all features of all Java releases.

JVM

Language

API

Tools

Should I Upgrade?

Java 18 is end-of-life since 2022-09-20. Unless you have a support contract for this version and a compelling reason to stay on the old version you should definitely upgrade to a newer version with active support.

Please consider upgrading to a current long term support LTS version Java 21 or Java 25 to rely on a maintained platform and get advantage of the latest features and improvements.

Downloads

Vendor Product License Platform Downloads
Adoptium Eclipse Temurin GPLv2+CE
Azul Systems Zulu Builds of OpenJDK 18 GPLv2+CE
BellSoft Liberica GPLv2+CE
IBM Semeru Runtime Open Edition, Version 18 GPLv2+CE
Oracle Oracle JDK 18 Oracle No-Fee
SAP SapMachine 18 GPLv2+CE

Sandbox

Instantly compile and run Java 18 snippets without a local Java installation.

import javax.lang.model.SourceVersion; public class Java18 { public static void main(String[] args) { System.out.println("Runtime required for this: " + SourceVersion.RELEASE_18.runtimeVersion()); } }