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
What are the differences between Java 1.0 and Java 2.0?
Can we extend a class with private constructor?
What are 4 pillers of object orinted programming?
What are the 5 types of research methods?
Is string serializable in java?
What is null in java?
Can a main method be overloaded?
Which of the classes will have more memory allocated?
Which are different kinds of source code?
Is static a singleton?
What is jit compiler in java?
What is boolean false?
Explain reverse a linked list recursive java solution?
How do you reverse sort in java?
How to run a JAR file through command prompt?