What is the difference between System.String and
System.StringBuilder classes?
Answer Posted / anonymous
The performance of your program is improved by using String
builder. When trying to concatenate old string + new
string...A new memory is allocated for the new string and
the old one is copied onto the new one. This is quite a
lengthy procedure, though it happens internally, it will
have a major impact on the performance of your program. To
overcome, this problem you can go for String builder.
| Is This Answer Correct ? | 23 Yes | 0 No |
Post New Answer View All Answers
What are the examples of data types?
What is console read in c#?
What's the difference between System.String and System..StringBuilder in C#?
Explain the use of Mutex in C#?
Can hashset contain duplicates c#?
Explain the difference between .net and c#?
What is the example of predicate?
What is constructors, explain with syntax
What is difference between private and protected?
Describe ways of cleaning up objects in c#.
What is distribute by in hive?
What are instance fields in c#?
Define a jagged array in c#?
Is it possible to inherit multiple interfaces?
Can you explicitly call a destructor?