Q:

What are the differences between System.String and System.Text.StringBuilder classes?

0

What are the differences between System.String and System.Text.StringBuilder classes?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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 a concept of a mutable string where a variety of operations can be performed without allocating separate memory locations for the modified string.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C# Interview Questions and Answers,You Need To Know

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Why Properties are introduced in C#?... >>
<< What are accessors?...