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
How long has c# been around?
Is std :: string null terminated?
What are data types in C#?
When was .net linq added?
What are types of constructor?
What's the difference between an integer and int?
What is the use of oops in c#?
Is string passed by reference in c#?
What are c# i/o classes? What are the commonly used i/o classes?
What are custom attributes in c#?
What are partial classes and use of partial classes?
How do you clear a list in c#?
What is a deadlock lock?
What sort algorithm does c# use?
What are the 3 logical operators?