Home > Interview Questions > C#.NET > Difference between System.String and System.StringBuilder ?

Difference between System.String and System.StringBuilder ?

by Thamil   on 19/11/2010   Category: C#.NET   |  Level: Beginner   |  Views: 1676    |  Points: 25     |  Gold 

1. System.String is immutable
2. When we do some operations in System.string each time it will create new instance.
3. System.StringBuilder is mutable.
4. StringBuilder is efficient to do lot of string manipulations it will not create new instance for each operations like System.String.

« What is the base class of .NET class library?
» Difference between Response.Write() and Response.Output.Write()?
Post Question  |  Question Home

Recent Posts

User Responses

No response found, be the first to review this question.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts