r/java • u/davidalayachew • Jun 07 '26
#JavaNext Language Features
https://youtu.be/fFocVFEe2TIIf you've been following along, most of the new features have already been discussed, but the genuinely new stuff is at 43:55, about arrays.
79
Upvotes
View all comments
Show parent comment
4
u/Afonso2002 Jun 07 '26
This or the records improvement would help write less code or be more structured.
Example: I have private methods that return arrays to consts toitialize them.
Probably they will wait a little for valhala, because of the not null and the can be null, ! ?.
I really like what he showed, and hope it would be easy to implement in jvm, so I can try it maybe in jdk 30.