1In java, string objects are immutable.
2Immutable basically means unmodifiable
3or unchangeable.
4Once string object is created its data or
5state can't be changed but a new
6 string object is created
1In java, string objects are immutable. Immutable simply means unmodifiable or unchangeable.
2
3Once string object is created its data or state can't be changed but a new string object is created.