This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Associate Certification (OCAJP 7) 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Associate Certification (OCAJP 7)
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: 5139
    
  12

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: 3254
    
    2
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: 2242
    
    7

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
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

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!
 
 
subject: Is this in the exam; Try with resources statement
 
Similar Threads
Active Replication question!
Active Replication question!
modal window
modal window
Revision Strategy for SCJP2 Exam