Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

An immutable object is one whose content cannot be changed.
An object can be immutable for various reasons, for example:

  • To improve performance (no planning for the object's future changes)
  • To reduce memory use (make object references instead of cloning the whole object)
  • Thread-safety (multiple threads can reference the same object without interfering with one other)

Learn more

General knowledge

Document Tags and Contributors

 Contributors to this page: lpiot, Andrew_Pfeiffer, klez, hbloomer, kscarfone, panaggio
 Last updated by: lpiot,