Fiveable
Fiveable

Immutable

Definition

Immutable refers to an object or data structure that cannot be changed after it is created. Once created, its state remains constant throughout its lifetime.

Related terms

Mutable: This term describes objects or data structures that can be modified after creation. Unlike immutable objects, mutable ones can have their state altered.

Final Keyword: In Java programming language, using the "final" keyword makes variables constant and classes uninheritable. It ensures immutability and prevents modification.

String Class: Strings in many programming languages are often immutable objects by default. Any modifications to strings create new string objects rather than modifying existing ones.

"Immutable" appears in:

Study guides (1)

  • AP Computer Science A - 5.5 Mutator Methods

collegeable - rocket pep

Are you a college student?

  • Study guides for the entire semester

  • 200k practice questions

  • Glossary of 50k key terms - memorize important vocab


Fiveable
About Us

About Fiveable

Blog

Careers

Code of Conduct

Terms of Use

Privacy Policy

CCPA Privacy Policy

Resources

Cram Mode

AP Score Calculators

Study Guides

Practice Quizzes

Glossary

Cram Events

Merch Shop

Crisis Text Line

Help Center

Stay Connected


© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

About Us

About Fiveable

Blog

Careers

Code of Conduct

Terms of Use

Privacy Policy

CCPA Privacy Policy

Resources

Cram Mode

AP Score Calculators

Study Guides

Practice Quizzes

Glossary

Cram Events

Merch Shop

Crisis Text Line

Help Center

© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.