Domanda di colloquio di Lowe's Home Improvement

Why String is Immutable in java

Risposta di colloquio

Anonimo

19 ott 2024

String are immutable because their adress reference are stored in string constant pool and if we try to alter the string then it will became a new string and will store with new adress into string constant pool

1