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.