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 are the types of comments in c#?
How do I enforce const correctness in c#?
Is c# difficult to learn?
is it possible to access a remote web service Without UDDI?
Can we extend sealed class in c#?
Are c# strings immutable?
What is the difference between double and decimal in c#?
What is the difference between string keyword and system.string class?
Why extension method is static?
What is lazy loading c#?
Can non-default constructors be used with single call sao?
Which of these statements correctly declares a two-dimensional array in c#?
What is difference between singleordefault and firstordefault?
What are generations and how are they used by the garbage collector?
What is a dictionary in c#?