Java, Java8, Java21, Java17, Migration.
facilitate creation of immutable data objects. Java 15 enhances record type further. With Java 16, record is now a standard feature of JDK. Defining a record is a concise way of defining an immutable data holding object. Without using record public final class Book { private final String title;