✏️ Explanatory Question

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

👁 31 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

A catch block is a group of Java statements that are used to handle a raised exception. Catch blocks should be placed after each try block.