About Question enthuware.ocpjp.v7.2.1091 :
Moderator: admin
-
- Posts: 31
- Joined: Tue Oct 06, 2015 1:57 pm
- Contact:
About Question enthuware.ocpjp.v7.2.1091 :
The wording for answer choice 4 is very deceiving. If you state "...multiple instances of a task..." that leads the reader to automatically think of invokeAll and invokeAny methods of the ExecutorService interface. Those methods only take Collection<? extends Callable>. Therefore using a callable would be more appropriate than a Runnable since that is the only choice we have.
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1091 :
That is a good point. I will let it be as it is for now to see how other users feel about it. Technically, you can submit multiple tasks using multiple calls to submit methods.
thank you!
Paul.
thank you!
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 31
- Joined: Tue Oct 06, 2015 1:57 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1091 :
Np but honestly, Thank You tons for all your help and quick responses!
-
- Posts: 18
- Joined: Fri Feb 09, 2018 11:50 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1091 :
I had the same problem, thought the question was referring to invokeAll.
-
- Posts: 9
- Joined: Thu May 07, 2020 5:15 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1091 :
Shouldn't "thread" start with a capital letter in the first answer choice as in the second answer choice?
-
- Posts: 60
- Joined: Thu Apr 15, 2021 12:21 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1091 :
If option 3 instead of
'When your task does not return any result but you want to execute the task asynchronously.'
Would say:
'When your task does not return any result and you want to execute it in a separate Thread.'
Would it (also) be a correct answer?
'When your task does not return any result but you want to execute the task asynchronously.'
Would say:
'When your task does not return any result and you want to execute it in a separate Thread.'
Would it (also) be a correct answer?
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1091 :
Yes, it would be correct then as well.
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 46 guests