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

Handling null in compareTo

Understand why compareTo should throw NullPointerException for null arguments per the contract.

This lesson is for subscribers

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