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 is localhost in asp.net?

570


Which library is used by the testers and developers to develop automated tests and create testing tools?

548


Why asp.net is better than php?

493


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

1548


Differentiate between client-side and server-side validations in web pages.

566






What is ascx?

539


Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc

560


What are custom controls?

533


What is __ requestverificationtoken?

555


Explain the asp.net mvc request life cycle? : asp.net mvc

508


In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?

597


How would ASP and ASP.NET applications run at the same time on the same server?

1951


Describe how to implement globalization and localization in the use interface in .net.

567


Explain about secure socket layer?

528


What is rending process in ASP.NET?

621