Hi Sunita,
It's probably easier to explain the concept of how some objects are immutable by using this simple example.
If I create a
string like this:
String s = "Hello";
I can *never* change this String. If I do something
like:
s = s.concat("World");
A new string is created and assigned to the reference s, the original String is not changed.
AFAIK other objects that are immutable are the wrapper classes for primitive objects.
Cheers
.