Categories

Oct 18, 2019 in C Sharp (C#)
Q:

What is the difference between “StringBuilder” and “String” in C#?

1 Answer

Oct 18, 2019
StringBuilder is mutable, which means once object for stringbuilder is created, it later be modified either using Append, Remove or Replace.

String is immutable and it means we cannot modify the string object and will always create new object in memory of string type.
Click here to read more about C Sharp
Click here to read more about Insurance

Related questions

Madanswer
May 6 in C Sharp (C#)
Oct 18, 2019 in C Sharp (C#)
Oct 18, 2019 in C Sharp (C#)
...