Software Engineering
Which keyword is used to define an exception block?
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.