Skip to content
Sign in
Software Engineering

Which keyword is used to define an exception block?

Tap an option to check the answer. You can also press A–D.

Show answer

Correct answer: C) Try

The try block is used to enclose code that may generate exceptions. Exceptions thrown inside the try block are handled by corresponding catch blocks.
Explanation
The try block is used to enclose code that may generate exceptions. Exceptions thrown inside the try block are handled by corresponding catch blocks.