.Net Framework Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 2399 Page Views: 

What is difference between string and stringbuilder?



Posted By: Avi Date: 3 July 2010 01:55:44 PM
 Answer:

String is for simple string operations while StringBuilder is used to perform high manipulation string operation, in this case it is more efficient.


Posted By: eTechPlanet


Date: 3 July 2010 01:55:44 PM

string -the object of this class are immutable i.e. we can not change any character that is contained by the object of this class.
stringbuilder:- the object of this class are mutable i.e. we can change the character in the object .that is from Systen.Text


Posted By: Vinit Kumar


Date: 5 July 2010 06:53:10 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image Efi2ra
Related Questions
.Net Framework : For what purpose Boxing is used in .Net?

For what purpose Boxing is used in .Net?

Boxing is used to convert value type to reference type
Category: .Net Framework Date: 8/25/2009 9:39:47 PM
.Net Framework : What is Global Assembly Cache (GAC)?

What is Global Assembly Cache (GAC)?

Global assembly cache contains shared assemblies that are globally accessible to all .net applicatio....
Category: .Net Framework Date: 8/22/2009 7:39:06 AM
.Net Framework : Contrast the use of an abstract base class against an interface?

Contrast the use of an abstract base class against an interface?

Abstract class can provides implementation for some methods and properties while Interfaces can prov....
Category: .Net Framework Date: 8/22/2009 7:37:40 AM
.Net Framework : In the context of a comparison, what is object identity versus object equivalence?

In the context of a comparison, what is object identity versus object equivalence?

1) Two objects are identical if they share same address in memory.Two objects are equivalent if they....
Category: .Net Framework Date: 8/22/2009 7:35:23 AM
.Net Framework : Is string a value type or a reference type?

Is string a value type or a reference type?

String is a refrence type. Value types differ from reference types in that variables of the value ty....
Category: .Net Framework Date: 8/22/2009 7:32:08 AM