java-16
2 tutorials tagged “java-16”.
- Compact Constructors in RecordsValidate, normalize and defensively copy record data in a compact constructor, add extra constructors with this(...), and avoid the common errors.
- Records in JavaOne line declares an immutable data class: what a record generates, how to add methods, the rules, shallow immutability, and when to use one.