Rules

Report a typo

Imagine you implement the compareTo() method in your class.
As a rule, should x.compareTo(y) == 0 have the same boolean value as x.equals(y) ?

Select one option from the list
___

Create a free account to access the full topic