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 you will synchronize a piece of your code? : Java thread
How a string is stored in memory?
Can a static class implement an interface?
Does set allows null in java?
What about interthread communication and how it takes place in java?
What is strings in java?
What is thread pool? How can we create thread pool in java?
What is a static method in java?
What is the range of a character variable?
Tell me the Importent classes in net package?
What is meant by distributed application? Why are we using that in our application?
Explain yield() method in thread class ?
What is the function of java?
Highest level event class of the event-delegation model?
What is a java lambda expression?