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 IFormatable
Why do we use dictionary in c#?
What is data bind in c#?
What are access modifiers used for?
What is the difference between parse and tryparse in c#?
What is the difference between const and readonly in c#.net?
What is c# most used for?
What are c# collections?
What is gridview c#?
What is the difference between icomparer and icomparable in c#?
What is difference between ienumerable and ienumerator in c#?
What are interfaces in c#?
can you allow a class to be inherited, but prevent the method from being over-ridden?
What is static noise?
What does .length do in c#?