Introduction

Difference between string and stringbuilder in C# is one of the frequently asked question in all c# interviews and all of us answer something in common

String is Immutable and StringBuilder is Mutable

This is a one word answer. In this article I would like to dig things in more details

Don’t Ignore Basics

Both String and Stringbuilder represent sequence of characters. When we list out their differences some of us don’t remember basic difference. That is String Class is in the System Namespace While StringBuilder is in System.Text.

Sometimes Mute is Safe

Let us make the statement again “String is Immutable and StringBuilder is Mutable” [Don’t be Confused about which one is mutable and which one is not].