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 difference between stored procedure vs function?

567


What is app_code folder in asp net?

525


What are Master Pages in ASP.NET?

567


Explain the asp.net page life cycle.

548


How can you pass multiple complex types in Web API?

561






Apart from IDE what are the enhancements in asp.net 2.0?

1619


what is meant by sitemapnode ?

1491


What is the use of session state and application state and difference between them?

473


How does the iis work?

538


How do you create a master page?

545


Why is global asax is used?

604


What is the question mark in a url?

513


What is the difference between ASP.NET Webforms and ASP.NET MVC?

602


What are sharepoint pages?

487


What are the types of session in asp.net?

519