my dog learned polymorphism
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
Sheriff

Joined: Jul 19, 2004
Posts: 7524
    
  36

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


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
OCAJP 7
Paul Anilprem
Enthuware Software Support
Ranch Hand

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


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

Joined: Sep 13, 2007
Posts: 3042
    
    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 OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32628
    
215

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.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, 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
 
It's not a secret anymore!