Watch · Arun | Engineering Judgment
Java Optional vs Null Object: Which Should You Use?
A chain like customer.getAddress().getCity().getName() needs a null check at every step. This video fixes it two ways, with Java's Optional and with the Null Object pattern, and then explains when to use each one.
YouTube