✏️ Explanatory Question

What is the purpose of the retry statement in a catch block?

👁 68 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

The retry statement re-executes the try block from the beginning. It is useful if the issue causing the exception can be corrected within the catch block.