Java records

Java records

In summary, Java records offer a convenient way to create immutable-like classes, but be cautious when dealing with fields that reference mutable objects.