Solved

Which of the Following Statements Is True

Question 3

Multiple Choice

Which of the following statements is true?


A) The catch block contains the code that might throw an exception.
B) The try block contains the code that handles the exception if one occurs.
C) You can have many catch blocks to handle different types of exceptions.
D) When a try block terminates, any variables declared in the try block are preserved.

Correct Answer:

verifed

Verified

Related Questions