What is the difference between System.String and
System.StringBuilder classes?

Answer Posted / mukesh

System.String is immutable. If your programe is going
concate more then two string then String class can do this
work easily but decrease programe funcationlity. This is
because when you are concate string that time it takes a
new momory allocated. But when you are using StringBuilder
then there is no new memory allocation.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is event delegate in c#?

578


What is class sortedlist underneath?

566


What are extensions methods in c#?

466


What do you know about Translate Accelerator?

588


Define Virtual folder?

627






What is an inheritance ?Give an example in which inheritance is used?

523


Explain About remoting and web services. Difference between them

535


Is list immutable in c#?

483


What is difference between continue and break in c#?

475


What do you know about WM_CHAR message?

569


What are the advantages of using c#?

503


Is there a way to force garbage collection?

494


What are the boolean data types in c#?

510


Define satellite assembly in c#?

487


Why do we need a singleton class?

502