Question OOP-EXC-0021
EasyWhat is the purpose of a catch (or except) block?
- A.
To handle an exception thrown in the try block
- B.
To declare variables
- C.
Show answer and explanation
Answer: A
Control jumps to the matching catch block when an exception occurs.