Types of Types
- A mutable type is one whose objects can be
changed. An immutable type cannot be changed.
- In java
Vector
is mutable but
String
is immutable.
- Immutable types are generally easier to reason
about.
- Mutable types might be faster to change, if large and
change is only to a small part.
José M. Vidal
.
11 of 16