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
Define satellite Assembly?
What are get and set in c#?
How do I port "synchronized" functions from visual j++ to c#?
What is a framework in c#?
How do you encapsulate in c#?
Describe ado.net?
What is namespace in oops?
What is system console writeline in c#?
How do you convert byte array to hexadecimal string, and vice versa?
What is xml comments in c#?
Can I get the name of a type at runtime?
Describe ways of cleaning up objects in c#.
What is the example of predicate?
Explain how to implement delegates in c#.net
Illustrate serialization?