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

Java 12

StatusEnd of Life
Release Date2019-03-19
EOL Date2019-09-17
Latest Version12.0.2
Class File Version56.0
Unicode Version11.0.0
API ChangesCompare to 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
The first Java release that included a preview feature (JEP 12). Such features are only available if the compiler and JVM is launched with the --enable-preview option. Previews allow to get early feedback on important changes in the Java language.

New Features

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

JVM

Language

API

Downloads

VendorProductLicensePlatform Downloads
AdoptOpenJDKAdoptOpenJDKGPLv2+CE
Azul SystemsZulu Builds of OpenJDK 12GPLv2+CE
BellSoftLibericaGPLv2+CE
OracleOracle JDK 12Commercial
Red HatRed Hat build of OpenJDK 12GPLv2+CE
SAPSapMachine 12GPLv2+CE

Sandbox

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

import java.util.function.Function; public class Java12 { public static void main(String[] args) { Function<String, String> hello = s -> String.format("Hello %s!", s); System.out.println("Java 12".transform(hello)); } }