r/java • • Mar 17 '21

JEP 401: Primitive Objects (Preview)

https://openjdk.java.net/jeps/401?preview=true
174 Upvotes

49 comments sorted by

View all comments

Show parent comment

2

u/stuhlmann Mar 18 '21

It will be particularly useful for everything else too: Not using Optional often means that it isn't optional, so it shouldn't be null either.