Page 1 of 1

About Question enthuware.ocpjp.v7.2.1091 :

Posted: Mon Feb 01, 2016 7:32 pm
by krohani
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.

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

Posted: Mon Feb 01, 2016 9:52 pm
by admin
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.

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

Posted: Tue Feb 02, 2016 2:25 pm
by krohani
Np but honestly, Thank You tons for all your help and quick responses!

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

Posted: Fri Feb 09, 2018 11:52 am
by radupana
I had the same problem, thought the question was referring to invokeAll.

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

Posted: Wed Dec 30, 2020 4:17 pm
by Michalrk1978
Shouldn't "thread" start with a capital letter in the first answer choice as in the second answer choice?

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

Posted: Sat Apr 17, 2021 7:49 pm
by enthunoob
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?

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

Posted: Sun Apr 18, 2021 12:36 am
by admin
Yes, it would be correct then as well.