← All tasks
🔢
Programming Beginner

Order a try/catch/finally Block's Execution

⏱ 4 min ⭐ 100 XP 🔁 3 attempts allowed

What you'll do

An exception is thrown inside a try block that has a matching catch and a finally clause. Order what executes.

Scenario

You want to guarantee a file handle is always closed, even when an error occurs.

Ready to try it?

Create a free account and try "Order a try/catch/finally Block's Execution" free for 7 days, no card required. Earn 100 XP and track your internship progress.

Already have an account? Sign in