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