Hi for all, nice to see you.
This is my first post, I'm writing to check with you if there are this two possible error in the book I'm studying:
-----------------------------------------------------------------------------------------------------------------------------
Chapter 6 - Review Question n. 18 on page 331 says:
18. 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.
The answer is:
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 be B, C, E? Are not A and B mutually exclusive ?
-----------------------------------------------------------------------------------------------------------------------------
Chapter 5 - Review Question n. 15 at page 295 says:
C. A concrete subclass must implement all methods defined in an inherited interface.
Is the interface inherited? Isn't it implemented?
The sentence shouldn't be: A concrete subclass must implement all methods defined in an inherited interface.
In the Answer I see:
Option C
is incorrect; a superclass may have already implemented an inherited interface, so the
concrete subclass would not need to implement the method.
Here again it is talking about inherited interface. Is it correct ?
Thank you very much