Which block executes even when a return statement is encountered in the try block?

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

Explanation

The finally block always executes, even after a return statement in the try block.

Update: Admin added a tag on this question

Topics

By Admin · · 34 views