Vidyalelo
Java Programming · Q299

Interfaces and Abstract Classes

Programming · Java Programming · question 299

Q299

Which of these exceptions will be thrown if we use null reference for an arithmetic operation?

A.
ArithmeticException
B.
NullPointerException
Answer
C.
IllegalAccessException
D.
IllegalOperationException

Answer: Option B

Solution

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