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

Can a constructor be static in c#?

1002


Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?

931


What is an escape sequence in c#?

969


How do I format a string in c#?

844


What is data adapter in c#?

880


Explain copy constructor?

1148


What is the ouput of the following program?

963


What is expression c#?

907


How can we sort the elements of the array in descending order?

934


Can we set image Source dynamically using C# in WPF application?

1061


Explain how do you directly call a native function exported from a dll?

908


What do constructors do in c#?

935


Will the following code compile?

953


What is the difference between asp net and c#?

906


Explain acid rule of thumb for transactions in c#.

967