About Question enthuware.ocpjp.v7.2.2009 :
Moderator: admin
-
- Posts: 53
- Joined: Fri Sep 20, 2013 7:20 am
- Contact:
About Question enthuware.ocpjp.v7.2.2009 :
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....
Yours disgruntledly etc....
-
- Site Admin
- Posts: 10043
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.2009 :
Yes, you need to know the API for these methods really good. Can't do much about it.
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 97
- Joined: Wed Dec 28, 2016 9:00 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.2009 :
This is nothing compared to collections where there are different return types for same named methods of different implementation classes!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....
-
- Posts: 1
- Joined: Thu Sep 28, 2017 12:46 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.2009 :
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?
-
- Site Admin
- Posts: 10043
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.2009 :
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.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 1
- Joined: Mon Nov 05, 2018 7:08 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.2009 :
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!
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!
-
- Site Admin
- Posts: 10043
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.2009 :
Check out the API description of ReentrantLock
It says it is alright to acquire the same lock again.
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.
Who is online
Users browsing this forum: Bing [Bot] and 39 guests