Immutable Objects
This week’s post offers a review of theconcept of immutable classes, and suggestions for best practices inimplementation. An immutable class is “aclass whose instances cannot be modified” (Bloch, 2018, p. 80) . There are many well-known immutable classes in the Java platformlibraries such as String and primitive classes like Integer and Double (Temre, 2015). To illustrateconsider …