A record is an immutable data carrier. One line replaces: constructor, getters, equals, hashCode, toString:
```java
record Point(int x, int y) {}
// Creates: Point(int x, int y) constructor, .x(), .y(), toString, equals, hashCode
`
Run this — see how little code it takes.