can anyone explain me these line form book OCPJSE8 by Jeanne and Scott
its written in page number 146 just below the code
For example, the following Product class defines a compareTo() method that is not consistent
with equals:
You might be sorting Product objects by name, but names are not unique. Therefore, the
return value of compareTo() might not be 0 when comparing two equal Product objects,
so this compareTo() method is not consistent with equals