What is Immutability of a string ?
Content of a string cannot be changed after assigning data to the string.
string content can be changed without creating a new string.
strings are stored in heap memory.
strings are stored in stack memory.
String content cannot be changed after assigning data. For more details see question no 1 's explanation in the same paper .
Back To Top