Examveda

In Java, what is the purpose of the `NullPointerException`?

A. To create JavaBeans

B. To execute SQL queries

C. To define JavaBean properties

D. It is thrown when an attempt is made to access an object that is null

Answer: Option D


This Question Belongs to Java Program >> Miscellaneous In Java

Join The Discussion

Related Questions on Miscellaneous in Java