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

What do you understand by java?

957


What is the differences between c++ and java? Explain

1030


What is the difference between java applets and applications?

1138


How do you create a sop?

984


What is a variable and constant?

984


Is java se open source?

1009


What is stack explain?

976


Why do I need to declare the type of a variable in java?

1055


what invokes a threads run() method? : Java thread

993


What is return keyword in java?

1042


Will the jvm load the package twice at runtime?

1080


What is the difference between superclass and subclass?

1144


What is the disadvantage of java?

933


What is difference between static variable and global variable?

1035


What is the dot operator?

982