Java 13

Release notes - Specification - JEPS

JEP Name Category Summary
350 JEP detail Dynamic CDS Archives Extend application class-data sharing to allow the dynamic archiving of classes at the end of Java application execution. The archived classes will include all loaded application classes and library classes that are not present in the default, base-layer CDS archive.
353 JEP detail Reimplement the Legacy Socket API Replace the underlying implementation used by the java.net.Socket and java.net.ServerSocket APIs with a simpler and more modern implementation that is easy to maintain and debug. The new implementation will be easy to adapt to work with user-mode threads, a.k.a. fibers, currently being explored in Project Loom.

Preview only

JEP Name Category Summary
354 JEP detail Switch Expressions (Second Preview) Extend switch so it can be used as either a statement or an expression, and so that both forms can use either traditional case ... : labels (with fall through) or new case ... -> labels (with no fall through), with a further new statement for yielding a value from a switch expression. These changes will simplify everyday coding, and prepare the way for the use of pattern matching (JEP 305) in switch. This is a preview language feature in JDK 13.
355 JEP detail Text Blocks (Preview) Add text blocks to the Java language. A text block is a multi-line string literal that avoids the need for most escape sequences, automatically formats the string in a predictable way, and gives the developer control over format when desired. This is a preview language feature in JDK 13.
351 JEP detail ZGC: Uncommit Unused Memory (Experimental)
Garbage Collector
Enhance ZGC to return unused heap memory to the operating system.