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
When is update method called?
Which oo concept is achieved by using overloading and overriding?
What is better- service oriented or batch oriented solutions?
List types of storage classes in java?
Can we write class inside a class in java?
What is native method in java?
Write code of any action class?
What are recursive functions? Give some examples?
Is the empty set a singleton?
What is derived datatype?
What is object-oriented programming?
When is the finally clause of a try-catch-finally statement executed?
What is meant by design patterns?
Why is whitespace important?
What is a numeric digit?