Java 14 – Helpful NullPointerException

Java 14 introduces NullPointerException with helpful information in case -XX:+ShowCodeDetailsInExceptionMessages flag is passed to JVM. Example Consider the following example − ApiTester.java Old Way: Compile and Run the program Output New Way: Compile and Run…

Java 14 – Packaging Tool

Java 14 introduces a new packaging tool, jpackage based on javapackager. javapackager was introduced in Java 8 and was part of JavaFX kit. As JavaFX is split from Java from 11 version, this packaging tool…

Java 14 – NUMA Aware G1

NUMA stands for Non-Uniform Memory Access. It is a memory architecture in which each processor core has its own local memory but other cores have permissions to access it. Paraller GC, when used with -XX:+UseParallelGC…

Java 14 – Other Enhancements

JEP 349 – JFR Event Streaming JEP 349 enhances JDK Flight Recorder data to continuous monitoring for in-process as well as out-of-process applications. Till Java 13, in order to use JFR data, user need to…

Java 14 – Deprecation & Removals

Deprecations Solaris and SPARC Ports (JEP 362) − because this Unix operating system and RISC processor are not in active development since the past few years. ParallelScavenge + SerialOld GC Combination (JEP 366) − since this is…

Java 14 – Pattern matching in instanceof

Java 14 introduces instanceof operator to have type test pattern as is a preview feature. Type test pattern has a predicate to specify a type with a single binding variable. Syntax Example Consider the following…

Java 14 – Text Blocks

Java 13 introduces text blocks to handle multiline strings like JSON/XML/HTML etc as is a preview feature. With Java 14, we’ve second preview of Text Blocks. Now Text Block have following enhancements − \ − indicates…