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


Please Help Members By Posting Answers For Below Questions

What are client activated objects?

777


What is the use of autowireup in asp.net?

753


What does clearing cache?

712


Why viewstate is used in asp.net?

744


When we use cookie less session? Explain its working?

768


What is the difference between abstract class vs interface? Can give me the real time examples?

708


What is session management in web application?

763


Is web config mandatory?

740


What is Pre-Render event in ASP.NET?

813


What are the server control tags in asp.net.?

809


What are cao and sao.

742


Demonstrate Render and PreRender?

817


Explain login controls.

808


What is the difference between server-side scripting and client-side scripting?

761


Why is this service branded with windows livetm?

785