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

What is difference between C# and VB.NET?

512


Distinguish between continue and break statement?

558


What are handlers in c#?

496


Is c# code is managed or unmanaged code?

485


What is xml document how do you open it?

568






What Is An Interface Class?

554


What are accessors?

530


Explain the difference between passing parameters by value and passing parameters by reference with an example?

495


What are immutable types in c#?

481


Is multiple inheritance possible in c#?

555


What is meant by unicode characters?

561


What are the differences between events and delegates in c#?

462


Can firstordefault return null?

501


Give examples for reference types?

531


Explain how is the dll hell problem solved in .net?

459