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 namespace is list in c#?

488


Explain the difference between abstract class and interface.

593


What is different between Implicit conversion and Explicit conversion in C#?

513


What is the purpose of dictionary in c#?

453


What is the data provider name to connect to access database?

498






What is Event - Delegate?

571


You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?

522


What is the real use of interface in c#?

462


What is the difference between list and arraylist in c#?

412


What is the use of the dispose method in C# ?

542


What is the use of static in c#?

487


What are partial types in c#?

488


How big is an int16?

490


What are escape sequences explain with example?

479


What are nested classes in c#?

551