What changed in Java 14
1 change across 1 question — each with the behaviour it replaced, because “and how did it work before?” is the follow-up.
What is the difference between checked and unchecked exceptions?
Helpful NullPointerException messages name the exact expression that was null (JEP 358) — including which link of a chained call. Opt-in via -XX:+ShowCodeDetailsInExceptionMessages in 14, on by default from 15.
Before (now gone): 'java.lang.NullPointerException' and a line number. On a line like a.b().c().d() you could not tell which of three calls returned null without a debugger or extra logging.