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 Global.asax is used ?
When do we generally use destructors to release resources?
How do namespaces work?
Is class reference type c#?
What does f mean in c#?
What are the properties of a string class?
What is native image generator (ngen.exe)?
In howmany ways can you deploy an assembly?
Can a class have multiple constructors c#?
What is for loop in c#?
How big is an int in c#?
What is file extension of webservices?
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
What are the main reasons to use c# language?
How main method is called in c#?