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

Can we inherit two classes in c#?

503


What is string literal in c#?

522


What is protected internal modifier in C#?

506


Do we get an error while executing the “finally” block in c#?

505


what class is underneath the sortedlist class?

548






What is #region in c#?

500


What is difference between an reference type and value type in C#?

561


What is the class in c#?

483


What is parallel programming in c#?

488


Which of these string definitions will prevent escaping on backslashes in c#?

565


What is extended class in c#?

469


What is executescalar in c#?

458


What is a void c#?

497


What are the fundamental differences between value types and reference types?

545


Which framework is best for desktop application?

520