When is the code within a catch block executed?
a. When the exception specified in the catch block is thrown in the try block
b. When the try block finishes executing
c. When the code in the try block doesn't compile
d. When a runtime error occurs
Answer: a. When the exception specified in the catch block is thrown in the try block
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.