String
The string is immutable, Immutable means if you create a string object then you cannot modify it and It always creates a new object of string type in memory.
Example
string strMyValue = "Hello Visitor";
// create a new string instance instead of changing the old one
strMyValue += "How Are";
strMyValue += "You ??";
StringBuilder
StringBuilder is mutable, which means if create a string builder object then you can perform any operation like insert, replace, or append without creating a new instance every time. it will update the string in one place in memory and doesn't create new space in memory.
Example
StringBuilder sbMyValue = new StringBuilder("");
sbMyValue.Append("Hello Visitor");
sbMyValue.Append("How Are You ??");
string strMyValue = sbMyValue.ToString();

Sagar JadhavPosted Apr 7, 2023, 5:20 PM
Perfect Answer.
SamPosted Nov 28, 2019, 6:02 AM
Nice one dear really very helpfull
Anjaneyulu CharyPosted May 13, 2019, 1:08 AM
Explanation is very clear. Easy to understand. Thanks for sharing this article.
hosam hemailyPosted Aug 29, 2018, 1:54 AM
Very nice explanation
Manojkumar KPosted Sep 25, 2017, 6:57 AM
Very easy to understand. Thanks
Dinesh Kumar SharmaPosted Jul 31, 2017, 9:36 AM
Thank for shared this article.
Saurabh TanwerPosted Jul 8, 2016, 2:06 AM
Why to use StringBuilder over String , garbage collector gonna free up extra memory at the end , why should bother with memory management and with stringbuilder class ?
Saurabh TanwerPosted Jul 8, 2016, 2:05 AM
Http://www.dotnetlearners.com/blogs/view/180/Difference-between-String-and-StringBuilder.aspx
Azhar AbbasiPosted May 16, 2016, 11:24 AM
you made it simple bro thumb up!
rkraju mPosted Nov 6, 2015, 8:52 AM
http://www.dotnetlearners.com/blogs/view/180/Difference-between-String-and-StringBuilder.aspx
TechoschoolPosted Mar 26, 2015, 12:25 PM
For more easy and nice explanation of difference between string and stringbuilder in c# follow this link- http://techoschool.com/Blog/Latest/Difference-between-string-and-StringBuilder
Shamseer KPosted Feb 13, 2015, 1:17 PM
Nice,For Further explanations there is a nice article about the same topic with practical examples.follow this link http://dotnetmob.com/difference-between-string-and-stringbuilder-in-csharp/
Chris EarglePosted Jun 30, 2014, 8:12 AM
Your article made me consider how one describes the benefit of StringBuilder. It is more memory efficient when appending a large amount of data (particularly of unknown quantity) since it doesn't need to reallocate memory for prior data.
Chris EarglePosted Jun 26, 2014, 10:25 AM
It kinda does create new space in memory since appending a line internally creates a new StringBuilder (that it links to).