View Single Post
Old 02-23-2018, 04:07 AM   #6
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 is offline   Reply With Quote