A

Admin • 802.91K Points
Coach

Q. What does the following code do?
try {
// code
} catch (Exception e) {}
finally {}

  • (A) Only executes if exception occurs
  • (B) Executes regardless of exception
  • (C) Only runs finally block
  • (D) Throws compile error

Explanation by: Admin
The `finally` block always executes after try-catch.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.