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

orElse Evaluation: Always Executes

Understand that orElse always evaluates its argument, even when the Optional contains a value, and performance implications.

This lesson is for subscribers

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