Chapter 6 Exceptions, Question 18 from
Java OCA 8 Programmer I Study Guide by Jeanne Boyarsky and Scott Selikoff
Which of the following are true? (Choose all that apply)
A. Checked exceptions are allowed to be handled or declared.
B. Checked exceptions are required to be handled or declared.
C. Errors are allowed to be handled or declared.
D. Errors are required to be handled or declared.
E. Runtime exceptions are allowed to be handled or declared.
F. Runtime exceptions are required to be handled or declared.
Answer in the end: A, B, C, E. Checked exceptions are required to be handled or declared. Runtime
exceptions are allowed to be handled or declared. Errors are allowed to be handled or
declared, but this is bad practice.
Shouldn't it just be B, C, E? The explanation is correct though.