Frage im Vorstellungsgespräch bei Coforge

Q. Why String is immutable in java?

Antwort im Vorstellungsgespräch

Anonym

27. Aug. 2024

The String is immutable, so its value cannot be changed. If the String doesn't remain immutable, any hacker can cause a security issue in the application by changing the reference value