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# references the same as c++ references?

768


How is lazy loading achieved?

704


Can you explain template pattern?

767


What is .cs file in c#?

710


What is expression tree with example?

678


What is difference between private and static constructor?

692


What is a clr host?

739


What is difference between C# and VB.NET?

789


What are the different types of delegation?

672


What is an interface class? Give one example of it

693


What is array collection?

716


Define c# and list the features.

750


What is code verification?

742


What is jit? What are the different types of jit?

796


What is default boolean value in c#?

725