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
Is a c# interface the same as a c++ abstract class?
What is the difference between Java and .NET garbage collectors?
Define parsing?
What is a linked list c#?
What is IL / CIL / MSIL?
What is a dictionary in c#?
What is hierarchical inheritance in c#?
What is the difference between string and stringbuilder in c#?
What are namespaces, and how they are used?
What do you know about device context?
If you define a user defined data type by using the struct keyword, is it a value type or reference type?
What are generics in c#.net?
Is c# queue thread safe?
What is generic delegates in c#?
What is ilist c#?