I'm doing some test exams on Whizlabs, and now I'm getting this question. I read the K&B 6 book, but never heard of this question:
Could someone say to me, if this is in the exam of what this is?
- X 2
K. Tsang wrote:Try with resource is a new feature in Java 7. So the K&B v6 guide will not have such topic.
For the question concerned, I think it's A & B
Upon checking the Java 7 API, there's no java.io.Resource and java.lang.AutoResource interfaces.
Ok thanks all. And yes the right answer was A and B!