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 ispostback c#?
Suppose two interfaces have same method, so how will you implement these methods in derive class?
What is signature c#?
Explain About .Net remoting
Explain nullable types in c#?
Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?
What is the default scope of a class in c#?
What is the data type for bit in c#?
Can scriptable objects have methods?
What’s a strong name?
Why do we need singleton class in c#?
What is iformatprovider in c#?
What is view state c#?
What is the difference between const and static read-only?
What does dbml mean in texting?