NullPointerException

NullPointerException is an unchecked exception from java.lang package. As the name indicates, if an object points to null and further used in the code, the JVM throws NullPointerException. Following is the class signature public class NullPointerException extends RuntimeException Following is the hierarchy Object –> Throwable –> Exception –> RuntimeException –> NullPointerException NullPointerException can be thrown …

NullPointerException Read More »