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
Why use a singleton instead of static methods?
When Should You Call The Garbage Collector In .net?
What are static and dynamic variables?
Explain the difference between Metadata and Manifest
What is attribute and reflection in c#?
What is dataadapter c#?
What is final keyword in c#?
What is assembly c#?
Which class comes after the SortedList class?
What is monitor in C#?
What's the implicit name of the parameter that gets passed into the set method/property of a class?
What is session management in c#?
What is difference between property and variable in c#?
What is data type c#?
Does unity use c++ or c#?