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

Java 21

StatusLong Term Support Release
Release Date2023-09-19
EOL Date2029-12
Latest Version21.0.7
Class File Version65.0
Unicode Version15.0.0
API ChangesCompare to 20 - 19 - 18 - 17 - 16 - 15 - 14 - 13 - 12 - 11 - 10 - 9 - 8 - 7 - 6 - 5 - 1.4 - 1.3 - 1.2 - 1.1 - 1.0
DocumentationRelease Notes, Language Spec, VM Spec, JavaDoc
SCMgit
Java 21 is the latest long term support (LTS) release after Java 17.

New Features

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

JVM

Language

API

Downloads

VendorProductLicensePlatform Downloads
AdoptiumEclipse TemurinGPLv2+CE
AmazonCorretto 21GPLv2+CE
Azul SystemsZulu Builds of OpenJDK 21GPLv2+CE
Azul SystemsAzul PrimeCommercial
  • linux-x64
  • linux-arm64
BellSoftLibericaGPLv2+CE
IBMSemeru Runtime Open Edition, Version 21GPLv2+CE
MicrosoftMicrosoft Build of OpenJDK 21GPLv2+CE
OracleOracle JDK 21Oracle No-Fee
Red HatRed Hat build of OpenJDK 21GPLv2+CE
SAPSapMachine 21GPLv2+CE

Sandbox

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

import java.lang.reflect.ClassFileFormatVersion; public class Java21 { public static void main(String[] args) { var v = ClassFileFormatVersion.latest(); System.out.printf("Hello Java bytecode version %s!", v.major()); } }
OSZAR »