About Question enthuware.ocpjp.ii.v11.2.1477 :
Posted: Tue Jan 05, 2021 6:19 pm
Regarding the second correct answer:You have a collection which contains objects of a class X. When the collection is sorted using Collections.sort(collectionOfX);, X's compareTo() method is used. Which of the following statements are correct about this class X?
How can the list be sorted in the reverse way without using a Comparator?The mechanism used in this situation allows the Objects of class X to be sorted in only one way (and the reverse of that way).