can any one explain with examples
Related Discussion: Most efficient way to concatenate strings?
Immutability Of String[instance is readonly]
string s="hi";
//now let s be address 1000
s+=" there";
//above concatination causes creation of new instance in address location other than 1000
//with modified value "hi there"
Mutability Of stringbuilder[instance can be modified]
StringBuilder sbr = new StringBuilder("My Favourite Programming Font is ");
sbr.Append("Inconsolata")
//append operation only modifies existing instance of sbr rather than creating new instance
For more Interesting examples and detailed discussions Strongly recommend to Follow this link
Descriptive article about this topic with lot of examples using ObjectIDGenerator,follow this link
Related Stackeoverflow Question: Mutability of string when string doesn't change in C#?