Vidyalelo
Java Programming · Q32

Miscellaneous Java

Programming · Java Programming · question 32

Q32

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board