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 does the initial catalog parameter define in the connection string?
Is there throws keyword in c#?
What is the real use of interface in c#?
Can we declare class as protected?
Write one code example for compile time binding and one for run time binding? What is early/late binding?
What is extended class in c#?
What is cosole application?
What is a namespace server?
What is event and delegates in c#?
What is callback method in c#?
What is the base class from which all value types are derived?
Explain async and await?
What is difference between continue and break in c#?
What is an array of arrays called?
Explain hash table in c# ?