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

Why declare Main() inside the class in java ?

990


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

1099


Tell me how many ways are there to initialise an integer with a constant.

1054


Are arrays classes in java?

963


What method is used to specify a container's layout in java programming?

1041


What are the differences between heap and stack memory in java?

995


Explain the private protected method modifier?

910


How big is a pointer?

981


When would you use a static class?

918


What is mnemonic code?

959


How define set in java?

988


Which package has light weight components in java programming?

1072


what is method reference in java 8?

975


What is string [] args?

955


What is the difference between abstract class and interface1? What is an interface?

996