CSS font stacks & developer FAQs with Web standards
Site navigation below

One of hundreds of answers available with our premium content service.

Part answer

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

Click for full answers

Premium members click below for full answer
How should I create an immutable class?

Home · Web fonts · Font stacks · FAQs · Java · CSS · Javascript · HTML · Site manager