One of hundreds of answers available with our premium content service.
A: An immutable class is one whose field values cannot be altered after instantiation, so all variable values must be assigned in the constructor and may therefore be declared final. By definition an immutable class should not have any modifier methods, but you must also be careful that the constructor and accessor methods do not expose mutable field references.
… full answer hidden
Premium members click below for full answer
How should I create an immutable class?