Question: Question 9 A method should only handle exceptions which it expects and which it knows how to process. All the other exceptions must be left

Question 9

A method should only handle exceptions which it expects and which it knows how to process. All the other exceptions must be left to the calling method.

True
False

Question 10

The code within the finally block is always executed, no matter how the program flow leaves the try block. This guarantees that the finally block will be executed even if an exception is thrown or a return statement is executed within the try block.

True
False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!