JEP 401: null-restricted types in Java

Allow value classes to opt in to implicit instance creation in
certain circumstances in exchange for optimized field and array storage.
This is a preview language and VM feature. Read more

Similar