Why String is Immutable in Java?

In java, string objects are immutable. Immutable simply means unmodified or unchangeable.
Once string object is created its data or state can't be changed but a new string object is created.

To get more details please watch below youtube video and Subscribe the channel.


No comments:

Post a Comment