20 Jahre Erfahrung FreeCall 0800 tutegos

Neues in Java 14

Java 14 ist der Nachfolger von Java 13. Das Release erschien am 17. März 2020. Der Nachfolger ist Java 15.

Die JEPs (JDK Enhancements) für Java 14 sind:


305: Pattern Matching for instanceof (Preview)
343: Packaging Tool (Incubator)
345: NUMA-Aware Memory Allocation for G1
349: JFR Event Streaming
352: Non-Volatile Mapped Byte Buffers
358: Helpful NullPointerExceptions
359: Records (Preview)
361: Switch Expressions (Standard)
362: Deprecate the Solaris and SPARC Ports
363: Remove the Concurrent Mark Sweep (CMS) Garbage Collector
364: ZGC on macOS
365: ZGC on Windows
366: Deprecate the ParallelScavenge + SerialOld GC Combination
367: Remove the Pack200 Tools and API
368: Text Blocks (Second Preview)
370: Foreign-Memory Access API (Incubator)

Die Switch-Expressions sind nun standardmäßig integriert, das gilt nicht für Pattern-Matching bei instaceof und genausowenig wie Records oder die Text Blöcke. Das sind Preview-Features, die man bewusst über einen Schalter aktivieren muss.

Weiterführende Links: