Errors and exceptions_2-4 multiple choice questions

Which of the following statements about the PHP exception handling mechanism is correct () (choose one)

 
A
Each try or throw can only correspond to one catch block.

B
When the exception is thrown, the subsequent block of code will continue to execute. Then find the matching catch block

C
Code that requires exception handling should be placed inside a try block so that potential exceptions are thrown. The catch block contains exception handling.

D
Exceptions can only be thrown in try code blocks, not in catch code blocks.

 

 C

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325120615&siteId=291194637