Solved

When Writing a Method, Which of the Following Statements About

Question 40

Multiple Choice

When writing a method, which of the following statements about exception handling is true?


A) The throws clause must list all checked exceptions that this method may throw, and may also list unchecked exceptions.
B) The throws clause must list all checked exceptions, but cannot list unchecked exceptions.
C) The throws clause must list all unchecked exceptions, and cannot list checked exceptions.
D) The throws clause must list all unchecked exceptions, and may also list checked exceptions that this method may throw.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions