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
What is an expression in c#?
What is the usage of transponders?
What is string interpolation in c#?
How do I create a .exe file?
What is a c# delegate?
How do you escape in c#?
What are Indexers in C#?
What is method overriding in c#
What is data bind in c#?
Can I define a type that is an alias of another type (like typedef in c++)?
What is ienumerable and iqueryable?
what is IDisposal interface
Is an array an object c#?
Why do I get a "cs5001: does not have an entry point defined" error when compiling?
What is the use of delegate?