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

Answer Posted / mahesh

String and StringBuilder Both are classe for store the
strings.
String Builder is faster than String. String is immitable,
StringBuilder is mutable.

Is This Answer Correct ?    28 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there a way of specifying which block or loop to break out of when working with nested loops?

761


What does exclamation mark mean in access query?

779


Is namespace a class?

676


Does main have to be static c#?

755


What does get set mean in c#?

704


Explain the role of the datareader class in ado.net connections?

688


What language is arduino?

764


What are the benefits of using the aggregate method in linq?

732


What are satellite assemblies?

745


What is ilist c#?

705


What is the purpose of a constructor in c#?

675


What is strong name assembly?

666


What are custom exceptions? Why do we need them?

732


Suppose two interfaces have same method, so how will you implement these methods in derive class?

705


What is virtual class in C#?

764