Home > Interview Questions > C#.NET > Differences between system.stringbuilder and system.string

Differences between system.stringbuilder and system.string

by san   on 10/01/2012   Category: C#.NET   |  Level: Beginner   |  Views: 2127    |  Points: 25     |  Bronze 

The main difference is system.string is immutable and system.stringbuilder is a mutable.
Immutable means once we created we cannot modified. Suppose if we want give new value to old value simply it will discarded the old value and it will create new instance in memory to hold the new value.
Append keyword is used in string builder but not in system.string.

« What are the Advantages of Using Stored Procedures?
» How do you check whether the browser supports java or not using C#.NET?
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