The Java Version Almanac
Feedback on this page?

Java 12

Status End of Life
Release Date 2019-03-19
EOL Date 2019-09-17
Latest Version 12.0.2
Class File Version 56.0
API Changes Compare to 11 - 10 - 9 - 8 - 7 - 6 - 5 - 1.4 - 1.3 - 1.2 - 1.1 - 1.0
Documentation Release Notes, Language Spec, VM Spec, JavaDoc
SCM git
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.





Vendor Product License Platform Downloads
AdoptOpenJDK AdoptOpenJDK GPLv2+CE
Azul Systems Zulu Builds of OpenJDK 12 GPLv2+CE
BellSoft Liberica GPLv2+CE
Oracle Oracle JDK 12 Commercial
Red Hat Red Hat build of OpenJDK 12 GPLv2+CE
SAP SapMachine 12 GPLv2+CE


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)); } }