About Question enthuware.ocpjp.v21.2.3352 :
Posted: Thu Jul 03, 2025 9:56 am
Hello, do we need to know other methods of Comparator interface such as comparing, comparingInt, naturalOrder, reversed, reversedOrder?
Java Certification Resources and Java Discussion Forum
https://www.enthuware.com/forum/
thank you.admin wrote: ↑Thu Jul 03, 2025 10:11 pmYes, at least comparing and reversed also.
But if you are going through the Javadoc for Comparator, take a look at others too, especially the thenComparing type methods.
Thanks admin, thenComparing method is very convenientadmin wrote: ↑Thu Jul 03, 2025 10:11 pmYes, at least comparing and reversed also.
But if you are going through the Javadoc for Comparator, take a look at others too, especially the thenComparing type methods Tap Road