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

Answer Posted / dinesh sharma

String bulider Can Be Used When More Than One String Can we
concatenated.
StringBuilder which is more efficient because it does
contain a mutable string buffer. .NET Strings are immutable
which is the reason why a new string object is created
every time we alter it (insert, append, remove, etc.).

StringBulider Is more Effiecent Then String B'Cuse It
Provide Some Standered Function like Append,Reverse,Remove
etc.

Is This Answer Correct ?    179 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by directing?

679


What is the purpose of ienumerable in c#?

690


What is delegation in oops?

725


What is a predicate in c#?

689


What is IL / CIL / MSIL?

892


How many bytes is an int c#?

680


What is difference between abstraction and encapsulation in c#?

761


Is object an int c#?

709


explain Garbage collector’s functionality on unmanaged code

718


What is the use of thread join in c#?

693


How is lazy loading achieved?

693


What is a function c#?

739


List the different stages of a thread?

685


How to get the sum of last 3 items in a list using lambda expressions?

719


What is a cs file?

761