Comment Comment by martinp Records were introduced in Java 14 [1]. An immutable DTO, with minimal boilerplate, that still behaves a class. Example:record Point(int x, int y) {}[1] https://blogs.oracle.com/javamagazine/records-come-to-java parent martinp 5 years ago
record Point(int x, int y) {}
[1] https://blogs.oracle.com/javamagazine/records-come-to-java