Design an immutable class in Java
Filed under TIAA
The question
Explain why strings are immutable and demonstrate how to design a custom immutable class, including handling nested mutable references.
No write-up yet. Related questions below have one.
Related TIAA questions
Collected from public candidate posts and coding forums. Updated Nov 2026.