Oracle Corporation has introduced several new features in Java.
Oracle Corporation has provided a brief overview of new Java features that will be released in the near future. The news is intriguing. On March 18, Oracle announced five features that are being prepared for the upcoming Java release, as reported by https://xrust.ru/. Here’s everything outlined below: enhanced primitive packaging is used to support language improvements, which implies reference types. Moreover, primitive types will be supported as type arguments. value class types with nullability constraints allow excluding variable types that store null value objects, providing more compact storage and other runtime optimizations. value classes and value objects extend the Java platform with value objects that are instances of classes containing only final fields and having no object identity. the creation of derived records enhances the language capabilities by allowing new records to be created from existing ones. stable values are objects that contain immutable data. Since stable values are treated by the JVM as constants, they enable the same performance optimizations that are activated by declaring a field as final.
https://xrust.ru/news/310943-korporacija-oracle-predstavila-neskolko-novyh-funkcij-v-java.html