What is the Main difference between String and
StringBuilder and why do we use StringBuilder.
Answer Posted / amit chaudhary
String and stringbuilder both methods are used to handle the
strings . the main differece between them in string
everytime a object has to be created for Operations like
append,Insert etc. at runtime but in case of stringbuilder
we can operate operations on same object. means the string
method is mutable and stringbuilder method is immutable
| Is This Answer Correct ? | 15 Yes | 20 No |
Post New Answer View All Answers
Are cao stateful in nature?
Why do we need private constructor in c#?
What is the default boolean value in c#?
What are expressions c#?
What is serializable in c#?
What does dbml mean in texting?
What is an icollection in c#?
How do I unload an application domain?
What is a bool in c#?
What is extension method in c# and how to use them?
Do unused Namespaces in c# affect run-time performance?
What is a web service in c#?
If I return out of a try/finally in c#, does the code in the finally-clause run?
How many types of constructor are there in c#?
How to sort an int array in c#?