Immutability

Immutable Objects

Immutable objects are simply objects whose state (the object’s data) cannot change after construction. Examples of immutable objects from the JDK include String and Integer.

(more…)

Advertisements