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 the size of Get method and how much data it can store?

678


When cookie will expire?

687


Explain the namespace classes used in asp.net mvc? : asp.net mvc

583


We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?

1492


What’s the difference between asp.net web forms and asp.net mvc?

640






Explain about asp.net caching?

655


Define msil.

633


What is Forms Authentication in ASP.NET?

657


What is the main differences between asp and asp.net?

605


Can one dll file contains the compiled code of more than one .net language?

634


To display data in a Repeater control which template you provide?

671


How do I upload a file from my ASP.NET page?

683


Which is better session or viewstate?

591


Explain the difference between inline and code behind - which is best in?

590


What are the disadvantages of using session?

559