Hi everyone at CodeRanch!
Many thanks to Scott and Jeanne for their endeavor of writing the series of study guides along with OCA/OCP 8 Programmer Practice Tests. I am convinced it could be much harder to prepare for the exams if we had no such convenient tools.
It is pleasure to have an opportunity to share my doubts about one statement in OCP
Java SE 8 Programmer II Study Guide book (2015).
Please, correct me if I am wrong. It seems to be an errata on page 303, at the very top of it. Where JammedTurkeyCage’s close() method is claimed to throw a checked exception. Whereas on previous page 302 we have such a declaration:
Doesn't that tell us JammedTurkeyCage’s close() method actually throws an
unchecked exception? Considering the fact that
IllegalStateException was mentioned to be an unchecked exception on page 288 in table 6.3. Which perfectly accords with this Oracle docs page
https://docs.oracle.com/javase/7/docs/api/java/lang/IllegalStateException.html
I guess, I am not a pioneer in tackling that particular statement. But I haven't found any mention of it neither here on CodeRanch neither here
https://www.selikoff.net/java-ocp-8-programmer-ii-study-guide/.
Thank you in advance for your attention and consideration of my assumption.
Kind regards,
Evgeniy