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 / debapriya maity

The first one is faster

Second code snippets:3 objects are created

1:s = "Hello Mom"
2:,I mean Mom
3:Hello Mom,I mean Mom

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the format specifier?

906


What is array and arraylist in java?

1088


placement papaers of spring computing technology

1388


How do you do a line break in java?

981


What is the use of :: in java?

996


Differentiate between class and structure.

1104


What are Normalization Rules? Define Normalization?

1027


What is difference between path and classpath in java?

996


Tell me a few examples of final classes defined in Java API?

1074


What is the difference between iterator and enumeration ?

991


What is a prefix function.write down a code to compute prefix function.

1037


When will we prefer to use set and list in java and why?

945


What is data and its types?

988


How do you compare values in java?

1009


Explain reverse a linked list recursive java solution?

970