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

Differences between system.stringbuilder and system.string

by San   on Jan 10, 2012   Category: C#.NET   |  Level: Beginner   |  Views: 74    |  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.

Like this question? Bookmark and Share:


  « Previous Question  |  Next Question »

  User Responses | Post .Net Interview Question
No Response found!
Submit feedback about this Interview Question
Please sign in to post feedback