As we all know, String is immutable. What are the reasons for String being immutable and the introduction of StringBuilder class as mutable?

As we all know, String is immutable. What are the reasons for String being immutable and the introduction of StringBuilder class as mutable?