There are basically the following two types of immutability: Referential immutability Immutable values