How to use and how not to use Optional in Java

If you are bored by null checking objects and want to make your code more readable, you should consider using Optional class. It is a container used to represent null with absent value.

   Java 

Krzysztof Mazur

Did you like this article?

How to use and how not to use Optional in Java