Frage im Vorstellungsgespräch bei Allscripts

Explain String Immutability

Antworten zu Vorstellungsgespräch

Anonym

16. Jan. 2020

As the value of the string stores in string pool which doesn't allow modification hence string is immutable

Anonym

3. März 2020

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