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

Are arrays immutable c#?

963


Can you have parameters for static constructors?

889


What is data reader in c#?

993


What are the types of operator?

805


Differentiate between copy and default constructor.

968


Which is the base class in c#?

866


What is generic method in c#?

887


What do you mean by saying a "struct is a value type"?

861


What is datetime minvalue in c#?

967


Is array thread safe c#?

818


Why do we use virtual methods in c#?

901


What .exe means?

849


Define assert() method? How does it work?

1060


Can bool be null c#?

835


Suppose two interfaces have same method, so how will you implement these methods in derive class?

908