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 are strings immutable in c#?
What is an escape sequence?
Can dictionary have duplicate keys c#?
Why is c# better than java?
What are the desktop applications?
Should I use double or float?
What is a private method in c#?
Are c# strings null terminated?
What is object pool in .net?
Which operator cannot be overloaded in c sharp?
What is predicate builder?
What is multiple interface in c#?
What is data quality assurance?
What is an inheritance ?Give an example in which inheritance is used?
What is form feed in c#?