1 Give the class of the exception object thrown when an atte
1) Give the class of the exception object thrown when an attempt is made to divide by
zero. ____________________________
2) You can have more than one catch block associated with a single try block, true or false? _____
3) The finally clause of the exception construct is optional, true or false? ______
Solution
Question 1:
Answer: ArithmeticException
ArthimetionException object thrown when an attempt is made to divide by zero.
Question 2:
Answer: True
We can have more than one catch block associated with a single try block
Question 3:
Answer: True
The finally clause of the exception construct is optional. If we mention then finally block will execute for sure irrespective of exception occured.

