Local-Variable Syntax for Lambda Parameters
An implicitly typed lambda can write its parameters with var. That does not allow var on ordinary method parameters.
Local-variable var arrived in Java 10 (JEP 286).
JDK 11 · JSR 384 · Long-term support
JDK 11 is Java SE 11, JSR 384, generally available on 25 September 2018. Vendors treat it as a long-term support release. The HTTP client leaves the incubator. Single-file source programs can be launched with the java command. Java EE and CORBA modules are removed from the JDK.
An implicitly typed lambda can write its parameters with var. That does not allow var on ordinary method parameters.
Local-variable var arrived in Java 10 (JEP 286).
java.net.http.HttpClient is a standard API. It supports HTTP/1.1 and HTTP/2.
Incubated in Java 9 as JEP 110. This release makes it standard.
OpenJDK JEP 321 (leaves JavaMastery)
Related reading: Networking and HTTP
String gains isBlank, strip, lines, and repeat. Files gains readString and writeString. These are library methods, not a separate language.
Related reading: Strings
Curriculum file: versions4Java9To11Features.java
The JDK implements TLS 1.3.
Modules such as java.xml.ws, java.xml.bind, and the CORBA modules are removed from the JDK. Applications that used them need those libraries on the classpath or module path.
JDK Flight Recorder is part of OpenJDK. It records runtime events with low overhead.
OpenJDK JEP 328 (leaves JavaMastery)
Related reading: JVM and memory
ZGC is a low-latency collector. In Java 11 it is experimental, not the default, and not a finished product feature.
It becomes a product feature in Java 15 (JEP 377).
OpenJDK JEP 333 (leaves JavaMastery)
Related reading: JVM and memory
java Hello.java compiles and runs one source file. The source file still has to be a valid program for that JDK.
Nashorn is deprecated and marked for removal. It is still present in Java 11.
Removed in Java 15 by JEP 372.
Also in this release: nest-based access control (JEP 181), dynamic class-file constants (JEP 309), ChaCha20 and Poly1305 (JEP 329), and Unicode 10 (JEP 327).
Since Java 8, Java 9 added modules and Java 10 added local var. Java 11 standardizes the HTTP client and removes the Java EE and CORBA modules. That is a change in the platform, not a claim that one release is better.
Sources. General availability, JSR 384, and the JEP list: OpenJDK JDK 11. OpenJDK JDK 11 (leaves JavaMastery)