Saturday, 27 December 2014

What is immutable?

Immutable class is a class which once created, it’s contents can not be changed.
Immutable objects are the objects whose state can not be changed once constructed.
e.g. String class

No comments:

Post a Comment