How to Use the Java Optional Properly
One of the exceptions that every Java Programmer must have faced is NullPointerException. They are hard to debug and cause unexpected termination of your application. To better handle NullPointerException, Java 8 has introduced the Optional class. In this post, I’ll explain how to use Optional in Java applications. Optional Overview The main benefit of the […]Continue reading