Tag

Java14

0 views collected around this technical thread.

Java Architect Essentials
Java Architect Essentials
Dec 6, 2023 · Backend Development

Understanding Enhanced NullPointerException in Java 14 (JEP 358)

The article explains how Java 14 introduces enhanced NullPointerException messages via JEP 358, how to enable them with the -XX:+ShowCodeDetailsInExceptionMessages flag, and discusses the technical details, benefits, and potential security considerations of this feature.

DebuggingJavaJava14
0 likes · 7 min read
Understanding Enhanced NullPointerException in Java 14 (JEP 358)
Selected Java Interview Questions
Selected Java Interview Questions
Oct 8, 2022 · Backend Development

Improved NullPointerException Handling in Java 14 (JEP 358)

The article explains how Java 14 introduces enhanced NullPointerException messages via JEP 358, showing traditional NPE problems, the new detailed exception output, required JVM flags, performance considerations, and potential security implications, with code examples illustrating the improvements.

JEP 358JavaJava14
0 likes · 7 min read
Improved NullPointerException Handling in Java 14 (JEP 358)
Architect's Tech Stack
Architect's Tech Stack
Oct 13, 2021 · Backend Development

Enhanced NullPointerException in Java 14: Using JEP 358 for Precise Debugging

Java 14 introduces enhanced NullPointerException messages via JEP 358, allowing developers to pinpoint the exact null variable in chain calls, with optional activation through the ShowCodeDetailsInExceptionMessages flag and considerations of performance and security.

DebuggingJEP 358Java
0 likes · 6 min read
Enhanced NullPointerException in Java 14: Using JEP 358 for Precise Debugging
Top Architect
Top Architect
Sep 19, 2021 · Fundamentals

Key New Features in Java 9–16: Private Interface Methods, Var, Switch Expressions, Records and More

This article provides a concise walkthrough of the most important Java 9‑16 language enhancements—including private methods in interfaces, diamond support for anonymous classes, enhanced try‑with‑resources, var type inference, switch expressions, text blocks, records, improved NullPointerException messages, foreign‑memory APIs, sealed classes and new garbage collectors—illustrated with clear code examples.

JDKJavaJava14
0 likes · 11 min read
Key New Features in Java 9–16: Private Interface Methods, Var, Switch Expressions, Records and More
Architect's Tech Stack
Architect's Tech Stack
Feb 23, 2020 · Fundamentals

Top 5 New Features Expected in Java 14

This article outlines the five major preview features slated for Java 14, including instanceof pattern matching, text blocks with new escape sequences, record types, the incubating jpackage tool, and the deprecation of the ParallelScavenge + SerialOld garbage collector combination.

Garbage CollectionJavaJava14
0 likes · 9 min read
Top 5 New Features Expected in Java 14