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

Which collection is thread safe in java?

511


What is keyset in java?

657


What are new features introduced with java 8 ?

552


I want to persist data of objects for later use. What’s the best approach to do so?

507


What is meant by local variable and instance variable?

602






What is the latest version of java?

587


How can you traverse a linked list in java?

684


Can memory leak happen java?

598


Difference between character constant and string constant in java ?

559


What is substring 1 in java?

591


how to open and edit XML file in Weblogic???

1551


What is string builder?

470


Can we define constructor in inner class?

544


What is the static method?

571


Write a java program to print fibonacci series?

542