Helpful NullPointerExceptions

JDK 14 will have a new feature, JEP 358 - Helpful NullPointerExceptions. This feature aims to bring a better understanding to the developer about the cause of a Null Pointer Exception. Let's take a look at the code below: String name = student.getName(); The JVM would produce a message like: Exception in thread "main" java.lang.NullPointerException … Continue reading Helpful NullPointerExceptions