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 is a bool in c#?
What are controls in c#?
How do I format in c#?
Explain the types of Polymorphism.
What does m mean in decimal c#?
What is the difference between array and arraylist c#?
List out two different types of errors in c#?
What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?
What is difference between const and static in c#?
Are structs value types or reference types?
Which control cannot be placed in mdi?
What is the meaning of console writeline in c#?
Why dependency injection is used in c#?
Can abstract class be instantiated c#?
What is the data provider name to connect to access database?