What is collection sort in java?
Answer / Mohit Kumar Sharma
The 'sort()' method in Java sorts the elements of a List or Set in ascending order. For sorting in descending order, you can use Collections.sort(list, Collections.reverseOrder());
| Is This Answer Correct ? | 0 Yes | 0 No |
What is reflexive association?
What is JAVA? Why it is platform independent?
What is the main use of java?
Explain the difference between call by refrence and call by value?
How do you detect memory leaks?
Is java type safe?
Can list be final in java?
What are abstract classes and anonymous classes?
1 Answers Flextronics, Thomson Reuters, Virtusa,
What modifiers can be used with a local inner class?
How do you classify Dialog Box?
When we should use serialization?
How OOPS concept is achieved in Java?
6 Answers Cognizant, JPMorgan Chase, Xavient,