Home / Questions / What is the function of catch block in exception handling ? Where does it appear in a program ?
Explanatory Question

What is the function of catch block in exception handling ? Where does it appear in a program ?

👁 95 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Catch block contains statements that we want to execute in case an exception is thrown in the try block. Catch block appears immediately after the try block in a program.