Home > DeveloperSection > Interviews > Why String is immutable in Java ?

Posted on    July-07-2015 11:17 PM

 Java Java  String 
 1 Answer(s)
  551  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    July-07-2015 11:17 PM

String is a special type of immutable class. Immutable class is a class which once created, it’s contents can not be changed. Immutable objects are the objects whose state can't be changed once constructed.

Don't want to miss updates? Please click the below button!

Follow MindStick