- What is the use of OptionalInt, Long et al? The primitives are not going to be null.
- What is the difference between OrElseGet() and or() ? Both take Consumer interface implementations only.
- Why do we need Optional.empty() and Optional.of() factory methods if these do not solve our original aim of handling NPE better?
Love podcasts or audiobooks? Learn on the go with our new app.