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 is the Main difference between String and
StringBuilder and why do we use StringBuilder.

Answer Posted / praveen kumar a

Strings are so heavily used in all programming languages
that we do not think about them very much.Normally all goes
well but sometimes we need more performance so we switch to
StringBuilder which is more efficient because it does
contain a mutable string buffer. .NET Strings are immutable
which is the reason why a new string object is created
every time we alter it (insert, append, remove, etc.).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is attribute c#?

807


What is c sharp used for?

854


What's the difference between class and object?

956


What are the steps for creating clr trigger

1001


What is routing in c#?

863


What is the difference between firstordefault and singleordefault?

860


What is data hiding in c#?

869


Why is c# used?

876


What is difference between string and stringbuilder in c#?

907


What are the three types of predicates?

830


What is difference between abstraction and encapsulation in c#?

970


Does console.writeline() stop printing when it reaches a null character within a string?

931


Is 0 an unsigned integer?

859


What is datasource c#?

861


What is strong data type in c#?

840