In Java, there have always existed primitive types and references, but not value types.
One of the goals of Project Valhalla is to explore and incubate feature candidates such as value types.
I would like to know if null
can be assigned to a value type variable, or if a value type variable can be compared to null
.
If not, I would also like to know why.