By ilovenagpur
via shivasoft.in
Submitted: Feb 03 2012 / 13:15
We have heard the word “Immutable class” lots of time in Java. The best example is class “String“. Immutable class is the class whose value cannot be changed throughout the life cycle. We cannot change the content of String class, everytime new reference is created when we change the content, that is the basic difference between String and StringBuffer Class.



Add your comment