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

Answer Posted / shankar

quick.it has the least time complexity and with the help
of pivot elements it gets sorted vvery easily.the time
complexity is log2n

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between choice and list?

586


How do I stop concurrentmodificationexception?

502


What is the difference between sleep and wait in java?

505


Can inner class extend any class?

590


Can we rethrow the same exception from catch handler?

554






How to provide security in java

1798


Is null keyword in java?

519


Give example to differentiate between call by value and call by reference.

583


Give a practical example of singleton class usage?

580


Write an algorithm for quick sort?

609


What variables are stored in stack?

521


Give me some null interfaces in java?

595


If a method is declared as protected, where may the method be accessed in java programming?

487


What are classloaders?

593


How do you replace a string in java?

537