Question: Select the correct usage of try - catch blocks: Select one: a . The code where error may appear must be written inside the try

Select the correct usage of try-catch blocks:
Select one:
a. The code where error may appear must be written inside the try block, and the exception handling code is in the catch block.
b. The code where error may appear must be written inside the try block, and the error-free code is written inside the catch block.
c. Exception handling code is written inside the try block and error code inside the catch block.
d. None of the above.
 Select the correct usage of try-catch blocks: Select one: a. The

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!