aspose file tools*
The moose likes Associate Certification (OCAJP 7/8) and the fly likes Is this in the exam; Try with resources statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Associate Certification (OCAJP 7/8)
Bookmark "Is this in the exam; Try with resources statement" Watch "Is this in the exam; Try with resources statement" New topic
Author

Is this in the exam; Try with resources statement

Gynnad Paullussen
Ranch Hand

Joined: Jan 26, 2011
Posts: 49
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
Bartender

Joined: Jul 19, 2004
Posts: 5599
    
  15

I believe that's a topic from the OCPJP 7, not the OCAJP 7.


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3336
    
    8
Try with resources is not covered in this (OCA JP) exam.


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2617
    
    9

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.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31074
    
232

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Gynnad Paullussen
Ranch Hand

Joined: Jan 26, 2011
Posts: 49
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
 
subject: Is this in the exam; Try with resources statement