Pergunta de entrevista da empresa Tata Consultancy Services

Is String immutable?

Respostas da entrevista

Sigiloso

25 de jul. de 2018

Yes is immutable, can't be modified. for the string pool

2

Sigiloso

10 de abr. de 2019

Yes String is immutable because everytime when you change the value it creates different object so you can't change value in current object and if you apply final upon it then it will become 100% immutable where you can't change the ref also

Sigiloso

25 de jul. de 2018

Yes is immutable, can't be modi