Multiple choice

A finally block can have

  1. break

  2. continue

  3. return

  4. none of these

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

A finally block executes regardless of how the try block exits (exception or normal completion). Control flow statements like break, continue, and return cause the finally block to execute before the transfer occurs, but they cannot appear inside the finally block itself.