What is the Main difference between String and
StringBuilder and why do we use StringBuilder.
Answer Posted / tharaknlr
Strings are immutable means Data value maynot be Changed and
Variable value may be changed.
StringBuilder performs is faster than Strings. and also
designed for Mutable Strings
we can use like this
System.text.StringBuilder
| Is This Answer Correct ? | 89 Yes | 25 No |
Post New Answer View All Answers
Is there a way to force garbage collection?
How do generics work in c#?
Is is possible to force garbage collector to run?
How the versioning applies to Assemblies or can you explain version numbers?
Why is hashset faster?
Why are dynamic link library used over static one?
What is interpolation in programming?
How can you access a private method of a class?
How do you use nullable?
Is overriding of a function possible in the same class?
Is there throws keyword in c#?
What is the meaning of int parse in c#?
How can I get the ascii code for a character in c#?
What is the usage of Enumeration in C# Programming and is it good to use or not ?
What does do in c#?