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
How to compare two strings in java program?
What is a singleton class in Java?
How does regex work?
Is minecraft java edition free?
Why generics are used in java?
What will be the initial value of an object reference which is defined as an instance variable?
Is special character in java?
Why is it called boolean?
What do you mean by object?
What is the preferred size of a component in java programming?
What is a variable declaration?
What is functional interface in javatpoint?
Why is serialization required?
What is your platform’s default character encoding?
Is char a data type in java?