System.String is immutable. When we modify the value of a string variable then a new memory is allocated to the new value and the previous memory allocation released.
System.StringBuilder was designed to have concept of a mutable string where a variety of operations can be performed without allocation separate memory location for the modified string.
Liked By
Write Answer
What are the differences between System.String and System.Text.StringBuilder classes?
Join MindStick Community
You have need login or register for voting of answers or question.
Samuel Fernandes
23-Aug-2017System.String is immutable. When we modify the value of a string variable then a new memory is allocated to the new value and the previous memory allocation released.
System.StringBuilder was designed to have concept of a mutable string where a variety of operations can be performed without allocation separate memory location for the modified string.