What's the advantage of using System.Text.StringBuilder over
System.String?
Answer Posted / abhinay kumar
stiringbuilder is mutable but string is immutable
i.e mutable means that if we define a variable with
stringbuilder and assigne the value to another
stringbuilder variable and if we change the value then the
reflaction will be seen on the both variable (it made
change on the same memory location reference)
immutable means if we define a variable with string and
assigne the value to another string variable and if we
change the value then the reflaction will not be seen on
the both variable
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the difference between localization and globalization?
What is the typical session identifier?
Why is mvc better than asp.net?
Explain what is viewstate?
How you can add an event handler?
How about the security in Activex DLL and Activex EXE ?
How would you implement inheritance using c#?
Why asp.net is used?
What are the 3 levels at which content pages can be attached to Master Page?
What does mvc represent in asp.net? : asp.net mvc
What are the benefits of Razor View?
Explain the differences between managed and unmanaged code?
What is class and object in asp.net?
What is active web page?
Explain the basic functionality of garbage collector?