Intermediate Java
Q45 / 100

What is a checked exception?

Correct! Well done.

Incorrect.

The correct answer is B) An exception that must be declared with throws or caught at compile time

B

Correct Answer

An exception that must be declared with throws or caught at compile time

Explanation

Checked exceptions (e.g., IOException) must be either caught or declared in the method signature with throws, enforced by the compiler.

Progress
45/100