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

Answer Posted / muni sankar

Heapsort is one of the best general-purpose sorting
algorithms, a comparison sort and part of the selection sort
family. Although somewhat slower in practice on most
machines than a good implementation of quicksort, it has the
advantages of worst-case O(n log n) runtime and being an
in-place algorithm

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dynamic array in java?

518


What is stack class in java?

535


What is the difference between abstraction and encapsulation?

553


How many bytes is a string java?

520


What is java regex?

527






Can we extend singleton class in java?

537


What is Java Package and which package is imported by default?

586


What is an interoperable application in java ?

579


How to do a true java ping from windows?

610


What is JFC?

701


which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com

3184


Can Exception handling we can handle multiple catch blocks?

637


What is the difference between public, private, protected, and friend access?

566


How to implement a multithreaded applet?

2195


Will the jvm load the package twice at runtime?

566