What is collection sort in java?



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

Post New Answer

More Core Java Interview Questions

What is reflexive association?

2 Answers   Infogain,


What is JAVA? Why it is platform independent?

10 Answers   NIIT,


What is the main use of java?

1 Answers  


Explain the difference between call by refrence and call by value?

1 Answers  


How do you detect memory leaks?

1 Answers  


Is java type safe?

1 Answers  


Can list be final in java?

1 Answers  


What are abstract classes and anonymous classes?

1 Answers   Flextronics, Thomson Reuters, Virtusa,


What modifiers can be used with a local inner class?

2 Answers  


How do you classify Dialog Box?

1 Answers   CGI,


When we should use serialization?

1 Answers  


How OOPS concept is achieved in Java?

6 Answers   Cognizant, JPMorgan Chase, Xavient,


Categories