What is the Main difference between String and
StringBuilder and why do we use StringBuilder.
Answer Posted / praveen kumar a
Strings are so heavily used in all programming languages
that we do not think about them very much.Normally all goes
well but sometimes we need more performance so we switch to
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.).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is routing in c#?
What is a statement c#?
What is thread pooling?
How do I unload an assembly?
Is arraylist generic in c#?
write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5
What is clr in c#?
Explain the difference between boxing and unboxing.
Is var a data type?
Illustrate the differences between the system.array.copyto() and system.array.clone()?
List out two different types of errors in c#?
Why is c# better than java?
How do I run a cshtml file?
What is a generic in c#?
What are the differences between events and delegates in c#?