Any given in Java is an immutable object, which means its state cannot be changed.
It should only be applied to immutable objects, and makes sure that when VerifyTrademark?
For example, an object that uses memoization to cache the results of expensive computations could still be considered an immutable object.
Interning is generally only useful for immutable objects.
A classic example of an immutable object is an instance of the Java class.
For immutable objects, there is no real difference between call-by-sharing and call-by-value, except for the object identity.
Once created by single assignment, named values are not variables but immutable objects.
This example uses a String as the state, which is an immutable object in Java.
A similar distinction is made between immutable and mutable objects.
A new datatype for lightweight, immutable objects; whimsically called "frobs".