QuestionQ27

VerifiedSecure Coding Practices for Error Handling

It is recommended that return, break, continue, or throw statements not be used in _________.

Explanation

A finally block executes during both normal and abrupt completion of its associated try statement. If the finally block itself completes abruptly through return, break, continue, or throw, that new control transfer overrides the prior reason for completion, potentially suppressing an exception or replacing a return result.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!