Skip to content

Why strings are immutable

Java strings cannot be modified after creation. Every operation returns a new string.

What does this buy?