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

a) ArithmeticException
b) NullPointerException
c) IllegalAccessException
d) IllegalOperationException

1 thought on “Which of these exceptions will be thrown if we use null reference for an arithmetic operation?”

  1. b
    Explanation: If we use null reference anywhere in the code where the value stored in that reference is used then NullPointerException occurs.

Leave a Comment