About Question enthuware.ocpjp.v7.2.2009 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
Student
Posts: 53
Joined: Fri Sep 20, 2013 7:20 am
Contact:

About Question enthuware.ocpjp.v7.2.2009 :

Post by Student »

Really, are we expected to remember this level of minutiae? :( Where does it end..if the return type for this method, why not all methods in this class, or all methods in all classes in this package etc.

Yours disgruntledly etc....

admin
Site Admin
Posts: 10043
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.2009 :

Post by admin »

Yes, you need to know the API for these methods really good. Can't do much about it.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

jagoneye
Posts: 97
Joined: Wed Dec 28, 2016 9:00 am
Contact:

Re: About Question enthuware.ocpjp.v7.2.2009 :

Post by jagoneye »

Student wrote:Really, are we expected to remember this level of minutiae? :( Where does it end..if the return type for this method, why not all methods in this class, or all methods in all classes in this package etc.

Yours disgruntledly etc....
This is nothing compared to collections where there are different return types for same named methods of different implementation classes! :roll:

BarrettC
Posts: 1
Joined: Thu Sep 28, 2017 12:46 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.2009 :

Post by BarrettC »

Reading the OCJP 1Z0-809 objectis, this is not in there. Is there a specific reason it is in the practice exams for the 1ZO-809 I purchased?

admin
Site Admin
Posts: 10043
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.2009 :

Post by admin »

It is not mentioned explicitly in the exam objectives but some candidates have reported getting a question on it. That is why we have included it in the question bank.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

aronia2
Posts: 1
Joined: Mon Nov 05, 2018 7:08 am
Contact:

Re: About Question enthuware.ocpjp.v7.2.2009 :

Post by aronia2 »

Hello,
Let's assume that the code uses trylock() and it compiles fine.
What is confusing for me is that the code invokes trylock() twice without calling unlock().
Shouldn't we get some sort of an Exception in this kind of situation?
Best Regards!

admin
Site Admin
Posts: 10043
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.2009 :

Post by admin »

Check out the API description of ReentrantLock
It says it is alright to acquire the same lock again.
The method will return immediately if the current thread already owns the lock.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 39 guests