A

Admin • 831.35K Points
Coach

Q. What is the purpose of the `finally` block?

  • (A) To handle exceptions
  • (B) To execute code after try/catch
  • (C) To catch only runtime exceptions
  • (D) None of the above

Explanation by: Admin
`finally` is used to execute code regardless of exception occurrence.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.