File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is this in the exam; Try with resources statement

 
Gynnad Paullussen
Ranch Hand
Posts: 49
  • 0
  • 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: 9134
75
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • 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: 3669
9
  • 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
Pie
Posts: 3222
12
Android Java
  • 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: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • 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
  • 0
  • 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!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic