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

Are c# objects passed by reference?

478


Describe an abstract class?

565


Can properties be overloaded in c#?

556


What is deadlock in c#?

517


When is a class declared as a class abstract?

594






What does static mean in c sharp?

584


Can you create an instance of a static class?

562


What namespace is list in c#?

501


who is a protected class-level variable available to?

550


Enlist the different types of classes in c#?

532


What is a helper method in c#?

492


Is array ienumerable c#?

479


What is strong name in c# and how can we use it?

546


What is throw in c#?

526


Why do we need nullable types in c#?

693