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...

StringBuilder s = new StringBuilder("Hello
Mom");s.append(",I mean,Mother");
Response.Write(s.ToString());


String s = "Hello Mom";
s+ = ",I mean Mom";
Response.Write(s);

Which is faster ? which uses the most memory?

Answer Posted / parameswaran m

The StringBuilder one is slightly more efficient and uses
less memory. In practice, it is unlikely to make enough of a
difference to matter either way.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

os is developed in c no java is more secured then c na why dont the os developed is developed using java

4229


What is the base class in java from which all classes are derived?

979


Does the order of public and static declaration matter in main method?

1072


Is intellij better than eclipse?

1092


What is dynamic binding(late binding)?

1051


Garbage collection in java?

1016


What checkbox method allows you to tell if a checkbox is checked?

1011


What are the two types of java?

1174


Can constructor return value?

962


What is the base class for error and exception?

999


What is math floor in java?

949


What is a stringbuffer?

971


What are the 3 types of control structures?

1017


What is unicode in java?

929


Tell me about your ability to work under pressure

2198