-
Which of these exceptions will be thrown if we use null reference for an arithmetic operation?
-
- IllegalAccessException
- ArithmeticException
- IllegalOperationException
- NullPointerException
- None of these
Correct Option: D
If we use null reference anywhere in the code where the value stored in that reference is used then NullPointerException occurs.