What is the function of the sort(Comparator"? super E" c) method from the List interface?

What is the function of the sort(Comparator"? super E" c) method from the List interface?



Answer: sorts the list using the order generated the the provided Comparator. The Comparator has several methods of its own that can be used to sort the list.


Learn More :

Data Structures

Learn More Multiple Choice Question :