InterviewSolution
Saved Bookmarks
| 1. |
Which of these exceptions will be thrown if we use null reference for an arithmetic operation?(a) ArithmeticException(b) NullPointerException(c) IllegalAccessException(d) IllegalOperationExceptionI 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 |
|
Answer» Right CHOICE is (b) NullPointerException |
|