posted 7 years ago
Page 146, "compareTo() and equals() Consistency" box.
In the last paragraph, "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 (...)"
should read: "You might be sorting Product objects by name, but names are not unique. Therefore, the return value of compareTo() might be 0 when comparing two non-equal Product objects (...)"
OCA Java 6, OCP Java 6, OCP Java 8