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

The question is about collection and not about the algorithm - My answer is array or arrayList. arraylist is backed by an array so it will have identical performance to an array.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by stack?

1152


Can we start a thread twice in java?

985


Can we make main() thread as daemon?

1107


What is the difference between assignment and initialization?

1050


Can a class declared as private be accessed outside it’s package?

1013


Explain where variables are created in memory?

1014


Difference between this() and super() in java ?

1078


What is a parameter in simple terms?

999


Why should we use singleton pattern instead of static class?

930


What is the differences between heap and stack memory in java? Explain

982


What is a short in java?

1045


What is the purpose of format function?

1179


How to provide security in java

2278


Explain the difference between call by refrence and call by value?

1022


is it possible to instantiate the math class?

1034