Course contentsShow
Java
Lesson 292 of 2,8707. Reference Types and Object FundamentalsPro lesson

Testing for null with == and equals

Learn the safe way to test if a reference is null and why calling equals on null throws an exception.

This lesson is for subscribers

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