What is the meaning of immutable in term of String in java?
Answers
Answered by
1
The term Mutable means "can change" and Immutable means "cannot change". An Immutable Object means that the state of the Object cannot change after its creation. ... Once string object is created its data or state can't be changed but a new string object is created.
Answered by
6
In Java, there are immutable objects whose data cannot be changed or modified (after changes). The string class is immutable, that is, after creating a string object, its data cannot be changed.
Similar questions