
"Derived creation streamlines code by deriving a new record from an existing record, specifying only the components that are different, according to the proposal, created in November 2023 and marked as updated in April 2024. Records are immutable objects, with developers frequently creating new records from old records to model new data."
"Enhanced primitive boxing, created in January 2021 and marked as updated in November 2025, uses boxing to support language enhancements that treat primitive types more like reference types. Among goals is allowing boxing of primitive values when they are used as the receiver of a field access, method invocation, or method reference."
"The primitive types feature calls for enhancing pattern matching by allowing primitive types in all pattern contexts and by extending instanceof and switch to work with all primitive types. This feature was created in June 2025 and last updated in December 2025."
Derived record creation streamlines code by allowing developers to create new records from existing ones while specifying only differing components, eliminating explicit wither methods. Enhanced primitive boxing treats primitive types more like reference types through boxing at boundaries with generic code, enabling primitive values as method receivers and type arguments. Primitive types in patterns extend pattern matching and instanceof/switch operations to work with all primitive types. Array enhancements under consideration include declarative array creation expressions with lambda support, final arrays, non-null arrays, and covariant primitive arrays. These features span multiple preview stages across different JDK versions.
Read at InfoWorld
Unable to calculate read time
Collection
[
|
...
]