Java 8 optional

In this article we will look into the java optional that get introduce in Jdk 8. An optional is an class in java.util package and acts as container that can hold both empty and a non-null values. It was introduced as a way to help reduce the number of NullPointerExceptions that occur in Java code. … Read more