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 trycatch 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 errorfree 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
