Why String is Immutable or Final in Java
In object-oriented programming, the immutable string or objects cannot be modified once it is created. But we can only change the reference to the object. We restrict to change the object itself.
Comments