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
Which types of inheritances does c# support?
what is main function of alternate teamplate of datalist?
Can we inherit private class in c#?
What's different between c# and c/c++?
What is difference between C# and VB.NET?
How is lazy loading achieved?
Can an abstract class have a constructor c#?
Is c# an open source?
How do you declare an interface in c#?
What is assembly and dll in c#?
What is call back method?
What is the difference between array and arraylist c#?
Int map to which .net types?
Can you pass parameters to destructors?
What is difference between assembly and dll?