Option B is correct because the unhandled exception becomes declared.
- Appendix A Answers to Review Questions
- from OCP Oracle® Certified Professional Java® SE 8 Programmer II
- Publisher: John Wiley & Sons
- Released: December 2015
The truth is that the answer only C, because the try-catch will catch the exception while try-with-resource arguments.
Share this highlighthttp://www.safaribooksonline.com/a/ocp-oracle-certified/9814375/