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
Why declare Main() inside the class in java ?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
Tell me how many ways are there to initialise an integer with a constant.
Are arrays classes in java?
What method is used to specify a container's layout in java programming?
What are the differences between heap and stack memory in java?
Explain the private protected method modifier?
How big is a pointer?
When would you use a static class?
What is mnemonic code?
How define set in java?
Which package has light weight components in java programming?
what is method reference in java 8?
What is string [] args?
What is the difference between abstract class and interface1? What is an interface?