When is the code within a catch block executed?
a. When the code in the try block doesn't compile
b. When the try block finishes executing
c. When a runtime error occurs
d. When the exception specified in the catch block is thrown in the try block
Answer: d. 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.