• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is this in the exam; Try with resources statement

 
Gynnad Paullussen
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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?
 
Roel De Nijs
Sheriff
Posts: 10456
137
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe that's a topic from the OCPJP 7, not the OCAJP 7.
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3765
10
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try with resources is not covered in this (OCA JP) exam.
 
K. Tsang
Bartender
Posts: 3509
16
Android Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34870
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try with resources is on the OCPJP, not the OCAJP. However even there, they didn't quiz on details like package names. At least not on my test.
 
Gynnad Paullussen
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic