Question d’entretien chez Revature

Why are strings immutable?

Réponse à la question d'entretien

Utilisateur anonyme

27 mars 2018

If a string is mutable, changing the string with one reference will lead to the wrong value for the other references. It would also be a security risk since strings are used in database connections, opening files, etc.

1