Avoid the NullPointerException when using the .equals method.
30th Aug 2021 by Aneesh Mistry

Avoiding the NullPointerException when comparing Objects

The .equals method is often used within if-statements and to return boolean expressions within an application. By understanding how the structure of the boolean to call the .equals method is made, we are able to design our booleans to avoid any null exceptions when comparing two Objects.

YouTube video link


Share this post