Errata : OCP Oracle Certified Professional Java SE 11 Programmer I Exam Fundamentals 1Z0-815 - Kindle edition
Posted: Wed Oct 02, 2019 7:22 pm
OCP Oracle Certified Professional Java SE 11 Programmer I Exam Fundamentals 1Z0-815: Study guide for passing the OCP Java 11 Developer Certification Part 1 Exam 1Z0-815 (p. 5). Enthuware. Kindle Edition.
"For example, an overriding method cannot throw a more generic exception that the one declared by the overridden method. On the other hand the constructor of a subclass cannot throw only a more specific exception than the one thrown by the constructor of the superclass. Think about that."
The word "only" need to be removed. I think the text meant to say
" On the other hand the constructor of a subclass cannot throw a more specific exception than the one thrown by the constructor of the superclass. Think about that."
"For example, an overriding method cannot throw a more generic exception that the one declared by the overridden method. On the other hand the constructor of a subclass cannot throw only a more specific exception than the one thrown by the constructor of the superclass. Think about that."
The word "only" need to be removed. I think the text meant to say
" On the other hand the constructor of a subclass cannot throw a more specific exception than the one thrown by the constructor of the superclass. Think about that."