Jump to content

Immutable (computer programming)

From Simple English Wikipedia, the free encyclopedia
Revision as of 04:41, 17 June 2025 by Wukuendo (talk | changes) (Immutable)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In programming, an immutable object (also immutability) means that its contents or value will not change or does not allow changes from users after being created. But, this does not mean an unwanted change can not happen to an object being stored in memory by finding unusual ways to bypass built-in rules or security.

The opposite is a mutable object that allows changes.