Java Interview question-16
Question 151: How mutable reference can be handled in an immutable class?
To handle mutable references in an immutable class:
Use defensive copying.
Wrap mutable objects with immutable wrappers.
Return defensive copies of mutable objects.
Ensure ...
tusharkant.hashnode.dev8 min read