Course contentsShow
Java
Lesson 1823 of 2,87037. Optional for Null SafetyPro lesson

Anti-Pattern: Optional.of() with Nullable Values

Why using of() instead of ofNullable() for potentially null values causes immediate NPEs.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.