Page 1 of 1
About Question enthuware.ocpjp.v21.2.3352 :
Posted: Thu Jul 03, 2025 9:56 am
by giginar
Hello, do we need to know other methods of Comparator interface such as comparing, comparingInt, naturalOrder, reversed, reversedOrder?
Re: About Question enthuware.ocpjp.v21.2.3352 :
Posted: Thu Jul 03, 2025 10:11 pm
by admin
Yes, 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.
Re: About Question enthuware.ocpjp.v21.2.3352 :
Posted: Mon Jul 07, 2025 3:02 pm
by giginar
admin wrote: ↑Thu Jul 03, 2025 10:11 pm
Yes, 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.
thank you.
Re: About Question enthuware.ocpjp.v21.2.3352 :
Posted: Wed Jul 16, 2025 4:42 am
by bekeanloinse
Got it, thank you! I’ll make sure to go through the Javadoc and review thenComparing and other related methods. Appreciate the
Geometry Dash Lite clarification!
Re: About Question enthuware.ocpjp.v21.2.3352 :
Posted: Wed Jul 16, 2025 9:53 pm
by lossstarry
admin wrote: ↑Thu Jul 03, 2025 10:11 pm
Yes, 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
Thanks admin, thenComparing method is very convenient
Re: About Question enthuware.ocpjp.v21.2.3352 :
Posted: Mon Dec 08, 2025 11:33 pm
by xenoiaten
giginar wrote: ↑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?
Poor Bunny
yes, it is highly beneficial to know these methods of the Comparator interface, especially if you are studying for a Java certification (like the Oracle Certified Professional - OCP) or if you want to write modern, clean, and concise Java code.