Which block is always executed whether an exception occurs or not?

  1. try
  2. catch
  3. finally
  4. throw
Correct answer finally

Explanation

`finally` always executes after try/catch, whether or not an exception is thrown.

Update: Admin added a tag on this question

Topics

By Admin · · 30 views