If I have 1000 objects and my requirement is to sort them
quickly, then which collection would you recommend and why?
Answer Posted / sanjay
The question is about collection and not about the algorithm - My answer is array or arrayList. arraylist is backed by an array so it will have identical performance to an array.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Which is best ide for java?
How do you do a line break in java?
Difference between string s= new string (); and string s = "abv";?
What is the difference between break and continue statements?
What does string intern() method do?
What is __ init __ functions?
What is ide with example?
What does a za z0 9 mean?
What are design patterns and please explain?
What is the difference between hashmap and hashtable? What is an interface?
What types of index data structures can you have in java?
Can you sort a list in java?
What is the difference between yielding and sleeping?
Can abstract class have private constructor?
What is the difference between static binding and dynamic binding?