Enhanced JEP 395: Records (Standardized)
Java 16 introduced JEP 395: Records as an incubated feature, and with Java 17, this feature was standardized. Records provide a new way to model immutable data structures with less boilerplate code. They are a special type of class designed to hold data without needing the user to write code for typical methods such as …