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
Why singleton pattern is used in c#?
Which is faster list or dictionary in c#?
In .NET which is the smallest unit of execution?
How do you comment out code in c#?
What are primitive data types in c#?
How big is a float?
Is int a struct in c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What happens if a static constructor throws an exception?
Is c# scripting language?
What is typeof c#?
What do you mean by abstract class in c#?
list the steps in code compilation in c#?
Perfect Example Of While And Do-While Loop In C#.Net ?
Explain what is the smallest unit of execution in .net?