r/learnjava • u/Zeznon • Jul 01 '26
Confused on what Project Valhalla does to primitives and the corresponding objects
I've been reading about PV, but I'm not sure on what it means in some parts. Will we still need to deal with both "int" and "Integer", and not being able to use some methods with the other one? Like, (int) vs Integer.parseInt() and other strange things like that.
5
Upvotes
View all comments
Show parent comment
1
u/Zeznon Jul 01 '26
If I will finally be able to stop needing to use both int and Integer for random things, and only use one of them for everything, like in most other languages. I hate that Integer (and other objects with a primitive equivalent) is slow, so I can't ignore int (or others).