Computer Science, asked by arunkumar2202, 1 year ago

What is the meaning of immutable in term of String in java?

Answers

Answered by soniahaider
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 Oreki
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