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 / ravi jain

First one is faster

because in 1st only one object is created,
but in 2nd one three objects are created.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is the empty set a singleton?

1037


How many arguments can a method have java?

1069


Which are the two subclasses under exception class?

1169


What super () does in java?

967


Can you give few examples of final classes defined in java api?

1054


How do I start learning java?

1130


Define canvas?

1029


Name and explain the types of ways which are used to pass arguments in any function in java.

1130


How to create an immutable class?

1174


Differentiate between static and non-static methods in java.

1100


Does hashset allow duplicates in java?

1186


What is abstract class constructor called?

1080


What does %4d mean in java?

1540


Which collection allows duplicate values in java?

1030


What is autoboxing in java?

1114