The Java Version Almanac
javaalmanac.io

Java 12

Release Date 2019/03/19
EOL Date 2019/09/17
Bytecode Version 56.0
API Changes Compare to 11 - 10 - 9 - 8 - 7 - 6 - 5 - 1.4 - 1.3 - 1.2 - 1.1
Documentation Release Notes, Language Spec, VM Spec, JavaDoc
SCM hg
Data Source
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

JVM

Language

API

Downloads

Vendor Product License Platforms
AdoptOpenJDK AdoptOpenJDK GPLv2+CE
  • aix-ppc64
  • linux-x64
  • linux-s390x
  • linux-ppc64le
  • linux-aarch64
  • linux-arm32
  • macOS-x64
  • solaris-sparcv9
  • solaris-x64
  • windows-x86
  • windows-x64
Azul Systems Zulu Builds of OpenJDK GPLv2+CE
  • linux-x86
  • linux-x64
  • linux-ppc32spe
  • linux-ppc32hf
  • linux-ppc64
  • linux-aarch64
  • linux-arm32
  • macOS-x64
  • windows-x86
  • windows-x64
  • solaris-sparcv9
  • solaris-x86
  • solaris-x64
BellSoft Liberica GPLv2+CE
  • linux-x86
  • linux-x64
  • linux-arm32
  • linux-aarch64
  • linux-ppc64le
  • macOS-x64
  • windows-x86
  • windows-x64
  • solaris-sparcv9
  • solaris-x64
Red Hat Red Hat OpenJDK GPLv2+CE
  • linux-x64
  • windows-x86
  • windows-x64
SAP SapMachine GPLv2+CE
  • linux-x64
  • linux-ppc64
  • linux-ppc64le
  • macOS-x64
  • windows-x64
Data Source

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