1.

Which of the following handles the exception when a catch is not used?(a) finally(b) throw handler(c) default handler(d) java run time systemI got this question by my school principal while I was bunking the class.Question is taken from Exception Handling in portion Exception Handling of Java

Answer»

Right option is (C) default handler

Easiest explanation: Default handler is used to HANDLE all the exceptions if catch is not used to handle exception. FINALLY is called in any case.



Discussion

No Comment Found

Related InterviewSolutions