Campbell Ritchie wrote:Does the question show a catch or a finally? Neither is absolutely necessary because this is a try with resources.
There are no catch or finally. They are not necessary here.
Eror is in option D description.
It says about some line with comment //s2
But there is no line with such a comment in code. Though option D is not correct I think authors missed this comment (//s2) in code.
Remember to always leap before you look. But always take the time to smell the tiny ads:
SKIP - a book about connecting industrious people with elderly land owners