gudii9
asked on
comparator interface
i would like to know more about comparator interface. why it is in java.util not in java.lang.
how it is different from comparable interface.
how compare() different from compareTo().
why implementing comparator second method equals() is optional unlike implementing compare() is mandotory
please advise
how it is different from comparable interface.
how compare() different from compareTo().
why implementing comparator second method equals() is optional unlike implementing compare() is mandotory
please advise
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.