What is the Main difference between String and
StringBuilder and why do we use StringBuilder.
Answer Posted / ashwini choudhari
string class u can't directly the change the string value
and u want to do some manipulation with the string object
then it's give the new memory in stack when u can the do
the manipulation with the string object but in String
Builder class not happened to give the new memory
allocation in stack it just repalcing the some part of
string which u want repalce or appended so that the
performances increases.
Actually String Builder it is referneces type .
| Is This Answer Correct ? | 11 Yes | 8 No |
Post New Answer View All Answers
How many types of polymorphism are there?
What is the role of the datareader class in ado.net connections?
How do I stop my console from closing in c#?
What is parallel programming in c#?
What is array class in c#?
What is single dimensional array in c#?
What does the dispose method do with the connection object?
What is array and its types in c#?
Are all methods virtual in c#?
How to rotate an Image in C#?
Expalin the way you implement inheritance by using VB.NET/C#?
Define multicast c# delegate?
What is primitive types in c#?
What is scope c#?
What is virtual in c#?