Explain immutability and why String is immutable.

Immutable objects cannot change after build — thread-safe without synchronization. String immutability allows intern pool, caching hashCode, and security...

Explain immutability and why String is immutable. · Home · Support the platform