What are immutable types? Give me an example of an immutable type.

An immutable type is a type in which once a value of the type has been created, the value cannot be changed (a new instance of the type must be created).

An example of an immutable type is String.

, {0}

Leave a Reply