Pergunta de entrevista da empresa UST

Why string is immutable in java?

Resposta da entrevista

Sigiloso

24 de fev. de 2020

because of stringpool concept. stringpool will have unique strings and which will be shared across the application, if someone changes the string value in one place, then the other referred string variable should not get affected.