If I have 1000 objects and my requirement is to sort them
quickly, then which collection would you recommend and why?
Answer Posted / sanjay
ArrayList. indexing is easy, count of objects is already known.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is object data type?
How does compareto method work?
Who is the owner of java?
Explain the available thread states in a high-level?
Do extraneous variables affect validity?
What is length in java?
How do you test a method for an exception using junit?
What is nested top-level class?
What about member inner classes?
What happens when you add a double value to a string?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
Why does it take so much time to access an applet having swing components the first time?
Explain a situation where finally block will not be executed?
What's the difference between int and integer in java?