CodeX
Published in

CodeX

Each of the 15 Methods of Java Optional’s API Explained in Less than 20 Seconds

Hands-on and beginner-friendly breakdown of Java 8’s Optional API.

Photo by Kenny Eliason on Unsplash

What is “Optional”?

As you may already know, Java 8 introduced some functional features to the language: one of these features is the Optional type.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store