<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Immutable object - Page 2 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Immutable_object&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Immutable_object&amp;p=3">3.Next</a>
</p>
<p>if some internally used attributes change, but the object's state appears unchanging from an external point of view. For example, an object that uses  to cache the results of expensive computations could still be considered an immutable object.</p>

<p>Strings and other concrete objects are typically expressed as immutable objects to improve readability and runtime efficiency in object-oriented programming. Immutable objects are also useful because they are inherently <a href="page.php?w=Thread_safety">thread-safe</a>. Other benefits are that</p><p>
<a accesskey="1" href="page.php?w=Immutable_object&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Immutable_object&amp;p=3">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
