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 difference between System.String and
System.Text.StringBuilder classes with example

Answer Posted / puneet mishra

according to me difference between a string class and using String Builder is that in using a string class you need to create new object befour appending it to the main string but in string builder class one don`t need to create object every time

Example for string builder class:
using System.Text;

stringBuilder str = new stringBuilder;
str.append("");

in the previous example once u create str as new instance of string builder class u just have to append every thing in to the string

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can properties be overloaded in c#?

959


Why is c# used?

909


How can you set image source dynamically from c# application to ”test.png” file?

1067


Which is faster dictionary or list?

916


How do you pronounce c#?

883


What is the difference between Decorator and Adapter pattern?

968


Explain the difference between Response.Write () and Response.Output.Write ().

947


What is string class in c#?

884


What is anonymous class in c#?

923


What is the namespace for datatable in c#?

952


What is .net console?

981


Can a constructor be private in c#?

916


If dll and exe files are same it means you can deploy both the files in gac?

928


1. Describe page life cycle?

2102


Can you mark static constructor with access modifiers?

970