Java Development Kit 28 Introduces JEP 401 for Value Objects
The Java Development Kit (JDK) 28 has integrated JEP 401, a preview feature that redefines the behavior of the '==' operator for Java objects. This update introduces identity-free class instances with only final fields, allowing for more efficient memory usage and performance improvements. The feature is currently disabled by default and requires enabling at both compile and runtime. This change is part of Project Valhalla, which aims to enhance Java's performance by optimizing how objects are handled in the Java Virtual Machine (JVM). The update is expected to impact developers by introducing new construction rules and restrictions on synchronization.