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
What is the difference between a method and a property?
Ho we can see assembly information?
What is application object in c#?
What is append in c#?
What is a multi line comment?
Why we use anonymous methods in c#?
What is difference between encapsulation and abstraction in c#?
Which constructor is called first in c#?
What is jagged array in c#?
What's new in c#?
What is the difference between protected and internal in c#?
How do I unload an application domain?
Explain the difference between and xml documentation tag?
My switch statement works differently! Why?
How to update the gui from another thread in c#?