Skip to content

Glossary: Data Structures and Algorithms in Java

immutable

Also written: mutable

Cannot be changed after it is made, like a `String` or a record. A mutable object such as a list is a dangerous HashMap key.

Where the book teaches it

Related terms

hashableStringBuilderrecord