What's the difference between
and
Enter two words to compare and contrast their definitions, origins, and synonyms to better understand how those words are related.

Mutable vs Immutable - What's the difference?

mutable | immutable | Antonyms |

Immutable is a antonym of mutable.



In programming of a variable terms the difference between mutable and immutable

is that mutable is having a value that is changeable during program execution while immutable is not able to be altered in the memory after its value is set initially, such as a constant.

As adjectives the difference between mutable and immutable

is that mutable is changeable; inclined to mutate while immutable is unable to be changed without exception.

As a noun immutable is

something that cannot be changed.

mutable

English

Adjective

(en adjective)
  • Changeable; inclined to mutate.
  • (programming, of a variable) Having a value that is changeable during program execution.
  • Antonyms

    * immutable

    See also

    * alterable ----

    immutable

    English

    Adjective

    (-)
  • Unable to be changed without exception.
  • The government has enacted an immutable law.
  • (programming, of a variable) Not able to be altered in the memory after its value is set initially, such as a constant.
  • Antonyms

    * mutable * nonimmutable

    Derived terms

    * strongly immutable * weakly immutable

    Noun

    (en noun)
  • Something that cannot be changed.
  • Anagrams

    * ----