In this article, we are going to show how to use the new Java 8 Optional – java.util.Optional class. 1. Introduction The null reference is a very common problem in Java, everybody got once a NullPointerException because some variable or input parameter was not properly validated. In Java, null, can have a logical value and a meaning; so it is ...
Read More »