This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Why calling get() directly defeats Optional's purpose and leads to NoSuchElementException risks.
You've completed the free preview. Subscribe to unlock every lesson in every course.