Optional in Java 8: Part 2

In the previous lesson, we looked at the Optional<T> class. You learned what an Optional is and how to create it.

In this lesson, we will look at all the operations that we can perform using an Optional.

Below is the list of methods available in the Optional class.

Get hands-on with 1400+ tech skills courses.