Geek Culture
Published in

Geek Culture

Java 8: Optional —The Ultimate Guide

A multi-purpose powerful tool in your box

Java 8 introduced the Optional class.

In this article, I’m going to explain and briefly show what it is and how to use some of its features I found more useful.

Optional

When instantiating an Optional, we are creating a container for an object of a…

--

--

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