1.

Which of these clause will be executed even if no exceptions are found?(a) throws(b) finally(c) throw(d) catchThe question was asked during an internship interview.Enquiry is from Finally & Built in Exceptions in division Exception Handling of Java

Answer»

Right choice is (b) finally

For explanation I WOULD say: finally keyword is USED to DEFINE a set of instructions that will be executed irrespective of the EXCEPTION found or not.



Discussion

No Comment Found

Related InterviewSolutions