Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
Optionals is a concept that brings new advantages:
- Use of type system to avoid runtime NullPointerException
- Intention revealing APIs
- Works nicely with Streams
But every new concept brings new responsibilities.
- IsPresent is bad for you DZONE
- Uses of Optional on StackOverflow
- A nice video on how to use Optionals from Devoxx
More optionals in Java 9+:
- The or() method
- The ifPresentOrElse() method
- The stream() method
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content