Record in Java

A Record is a Java Special class that is immutable, safer, concise and designed for data carrier class.It’s like a built-in minimal DTO.