Advanced
Java
Q95 / 100
What is the difference between checked and unchecked exceptions from an API design perspective?
Correct! Well done.
Incorrect.
The correct answer is B) Checked exceptions represent recoverable conditions callers are expected to handle; unchecked represent programming errors
B
Correct Answer
Checked exceptions represent recoverable conditions callers are expected to handle; unchecked represent programming errors
Explanation
Effective Java (Bloch) advises using checked exceptions for conditions a caller can reasonably recover from and runtime exceptions for programming errors or precondition violations.
Progress
95/100