: : What is the difference between immutable and mutable object in Java? : Hi All, : : I found a good writeup about this : http://question2answer.googlepages.com/core-java.html : : any other ideas. The fields of an immutable cannot be changed after the object has been constructed. When a field needs to be changed after the construction of an immutable object, a new instance is created with the changes applied during its construction.
Comments
Hi All,
I found a good writeup about this
http://question2answer.googlepages.com/core-java.html
any other ideas.
: Hi All,
:
: I found a good writeup about this
: http://question2answer.googlepages.com/core-java.html
:
: any other ideas.
The fields of an immutable cannot be changed after the object has been constructed. When a field needs to be changed after the construction of an immutable object, a new instance is created with the changes applied during its construction.