Why String is Immutable or Final in Java

Posted by Neha P.
6
Dec 13, 2020
37 Views
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
avatar
Please sign in to add comment.