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

If I have 1000 objects and my requirement is to sort them
quickly, then which collection would you recommend and why?

Answer Posted / sanjay

ArrayList. indexing is easy, count of objects is already known.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is object data type?

1043


How does compareto method work?

1020


Who is the owner of java?

1047


Explain the available thread states in a high-level?

1009


Do extraneous variables affect validity?

956


What is length in java?

1056


How do you test a method for an exception using junit?

1263


What is nested top-level class?

1090


What about member inner classes?

1153


What happens when you add a double value to a string?

1056


What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

1020


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

1164


Why does it take so much time to access an applet having swing components the first time?

1983


Explain a situation where finally block will not be executed?

1091


What's the difference between int and integer in java?

1229