Java
Designing Immutable Classes Properly
Marking fields final is not the same as making a class immutable. Here's what full immutability actually requires and where it usually leaks.
3 min read
Tag
2 articles
Marking fields final is not the same as making a class immutable. Here's what full immutability actually requires and where it usually leaks.
Records aren't just less boilerplate — they push Java toward modeling data as data, separate from behavior. Here's how to use them well.