Difference between string and stringbuilder?

Answer Posted / akash

using String
if u want to append the text then u prefer's this thing
string strTemp="a";
strTemp=strTemp+"jay";

But in case of StringBuilder
if u want to do the samething then u will get a append() function.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are extension methods and where can we use them?

460


What is lazy loading c#?

502


Can an interface extend a class c#?

510


What is ado net in c#?

504


What is lastindexof c#?

484






What is iqueryable in c#?

492


What is the benefit of using interface in c#?

501


How many destructors can a class have?

593


What does type safe mean in c#?

509


What is the use of console readkey ()?

485


Can I call a virtual method from a constructor/destructor?

483


What's the difference between class and object?

483


What is boxing in c#?

555


What does console writeline do?

492


How the versioning applies to Assemblies or can you explain version numbers?

567