Thread
:
Why String is final in Java?
View Single Post
02-23-2018, 04:07 AM
#
5
smmexpertss
Registered User
Join Date: Sep 2015
Location: UK
Posts: 447
Once you assign a string object, that object can not be changed in memory. In summary, what you did is to change the reference of "a" to a new string object. Java String is immutable, String will Store the value in the form of object.
smmexpertss
View Public Profile
Find More Posts by smmexpertss