Course contentsShow
Java
Lesson 1320 of 2,87030. Comparable and ComparatorPro lesson

Consistency with equals: The First Rule

Understand why compareTo should return zero exactly when equals returns true for correct behavior.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.