How to use Java Optional to handle NullPointerException?
We all know the pain of dealing with null references and the potential for NullPointerExceptions. That’s where Optional comes in, it’s a container object that may or may not contain a non-null value, and provides a variety of utility methods to check...
ayushsblog.hashnode.dev9 min read