ExamVeda
Login
Home
This question belongs to Java Program Exceptions
Exceptions
?

What happen in case of multiple catch blocks?

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Yatin Verma
Yatin Verma 10 years ago
It is because it we catch any superclass Exception first, then it will be caught and other Exception which is written below will ot be executed and give compile time error. Hence subclass excepton should be at top and superclass Exception at bottom