What is the difference between System.String and
System.StringBuilder classes?
Answer Posted / davender arora
sytem.string is immutable it means if we r performing
string manipulations new memory is allocated each time
eg:string a=dev; a=arora; in this case new memory is
created a=arora and previously a=dev wil be deleted.so
major impact on performance but string builder is mutable
so same memory wil be updated for the same so good
performance.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is yield c#?
Explain About Virtual functions and their use.
How is a loop recorder monitored?
How can we set the class to be inherited, but prevent the method from being over-ridden?
How to implement singleton design pattern in c#?
Is Multiple-inheritance supported by c#?
How do I start a program in c#?
Is list ienumerable c#?
What is a cshtml file?
What is difference between the "throw" and "throw ex" in .net?
Why is c# used?
Is typeof c#?
How to Show Message box in Metro Style App?
What is generic delegate in c#?
Which debugging tools you can use in the .NET ssSDK?