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 / jhansi

String..
1.Its a class used to handle strings.
2.Here concatenation is used to combine two strings.
3.String object is used to concatenate two strings.
4.The first string is combined to the other string by
creating a new copy in the memory as a string object, and
then the old
string is deleted
5.we say "Strings are immutable".

String Builder..
1.This is also the class used to handle strings.
2.Here Append method is used.
3.Here, Stringbuilder object is used.
4.Insertion is done on the existing string.
5.Usage of StringBuilder is more efficient in case large
amounts of string manipulations have to be performed

Is This Answer Correct ?    40 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?

994


What is the meaning of unobtrusive javascript? Explain us by any practical example.

992


How we can add the CSS in ASP.Net MVC?

1023


Is the following route definition a valid route definition? {controller}{action}/{id}

1234


What is the difference between tempdata and viewbag?

937


What is the difference between model and entity?

1030


How does servicing work for the .net framework 3.0?

924


What are ajax helpers in asp.net mvc?

1067


Explain the difference between Viewbag and Viewdata in ASP.NET MVC?

1022


What is the use of web api ? Why web api needed, if you have already restful services using wcf ?

1002


What are ajax helpers in mvc?

966


How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?

1011


What is orm entity framework?

968


What is RouteConfig.cs in ASP.Net MVC 4?

1068


Explain tempdata in mvc?

989