Which of these exceptions will be thrown if we use null reference for an arithmetic operation?
(a) ArithmeticException
(b) NullPointerException
(c) IllegalAccessException
(d) IllegalOperationException
I had been asked this question by my school principal while I was bunking the class.
I'd like to ask this question from Java’s Built in Exceptions topic in chapter Exploring java.lang & java.io of Java