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
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
What are the parts of methodology?
What does i ++ mean in Java?
What is double parsedouble in java?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
Explain differences between collection api and stream api?
Explain treeset?
Define interface in java?
What is difference between core java and java ee?
How does compareto work in java?
What is the purpose of the system class in java?
How to change the priority of thread or how to set priority of thread?
Where to store local variables?
What is sorting in java?
Where are global variables stored?