Deshmukh, Hanumant. 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.
In the passage below , i have highlighted in red at 2 places ... for the first one , i am thinking you meant to write "than" instead of "that" .....for the second one ,did you mean to say that the constructor of the sub class can only throw more specific exception than the constructor of the super class ?
"Java is designed with this in mind. You will see that many seemingly confusing rules are there precisely because they promote the development of interchangeable components. 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."
Errata : OCP Oracle Certified Professional Java SE 11 Programmer I Exam Fundamentals 1Z0-815 - Kindle edition
Moderator: admin
-
- Posts: 21
- Joined: Mon Sep 30, 2019 9:48 pm
- Contact:
-
- Site Admin
- Posts: 10404
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: Errata : OCP Oracle Certified Professional Java SE 11 Programmer I Exam Fundamentals 1Z0-815 - Kindle edition
Correct. Added to errata.
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: Bing [Bot] and 12 guests