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

Does isempty check for null?

543


Can we serialize arraylist in java?

530


What are different ways of object creation in java ?

564


In java, how we can disallow serialization of variables?

544


Explain the significance of listiterator.

576






What is a package in java? List down various advantages of packages.

744


How do you clear a method in java?

532


What are the different types of garbage collectors in java?

540


Is java same as core java?

578


Is alive method in java?

500


What interface is extended by awt event listeners?

585


What are void methods?

561


What is the difference between Array and Hash Table?

536


What is the purpose of the runtime class in java programming?

553


Is it possible for yielded thread to get chance for its execution again ?

544