What is the Main difference between String and
StringBuilder and why do we use StringBuilder.

Answer Posted / tharaknlr

Strings are immutable means Data value maynot be Changed and
Variable value may be changed.
StringBuilder performs is faster than Strings. and also
designed for Mutable Strings
we can use like this
System.text.StringBuilder

Is This Answer Correct ?    89 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hashtable in c# with example?

499


what is the difference between .dll and .exe

533


What types of object can I throw as exceptions?

543


What are the applications of c#?

474


What is difference between value and reference types in C#.NET

523






How is exception handling implemented in c#?

585


Explain the serialization in .net

552


What are the different types of comments in c#?

495


If you want to write your own dot net language, what steps you will u take care?

563


What are primitive types in c#?

535


what is a destructor?

604


Why we use extension methods in c#?

471


What is the difference between struct and class c#?

486


Explain manifest & metadata in c#.

537


What is the example of predicate?

509