Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What's the advantage of using System.Text.StringBuilder over
System.String?

Answer Posted / article

Hi..

Mutable & Immutable

1)string is immutabel.
i.e. whenever you create any changes to a string a new
object is created in memory.
2)StringBuilder has advantage String
To overcome this the stringBuilder is provided we can make
ammendments to the stringBuilder object without creating a
new object. Therefore whenever a lot operations are to be
made on a string then StringBuilder should be used in place
of String.

Thank's
Pradhan Prasanta Kumar
http://globaltouch.in

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?

978


What is virtual directory in asp.net?

1054


How to add DateTime Control in normal DataGrid Server Control?

1096


What is difference between viewstate and session in asp net?

1037


What is difference between web api and web services?

1009


What are the advantages of the code-behind feature?

986


What is a viewbag?

966


Is asp.net core faster?

1019


Can you explain autopostback?

984


Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?

1180


What is custom events? How to create it?

1056


Explain asp.net page life cycle?

1086


Does asp.net still recognize the global.asa file?

1115


Explain advantages of caching?

936


Can I tap into other windows livetm services?

990