About Question enthuware.ocpjp.v7.2.1091 :

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

Moderator: admin

Post Reply
krohani
Posts: 31
Joined: Tue Oct 06, 2015 1:57 pm
Contact:

About Question enthuware.ocpjp.v7.2.1091 :

Post 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.

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

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

Post 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.
If you like our products and services, please help us by posting your review here.

krohani
Posts: 31
Joined: Tue Oct 06, 2015 1:57 pm
Contact:

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

Post by krohani »

Np but honestly, Thank You tons for all your help and quick responses!

radupana
Posts: 18
Joined: Fri Feb 09, 2018 11:50 am
Contact:

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

Post by radupana »

I had the same problem, thought the question was referring to invokeAll.

Michalrk1978
Posts: 9
Joined: Thu May 07, 2020 5:15 pm
Contact:

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

Post by Michalrk1978 »

Shouldn't "thread" start with a capital letter in the first answer choice as in the second answer choice?

enthunoob
Posts: 60
Joined: Thu Apr 15, 2021 12:21 pm
Contact:

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

Post 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?

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

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

Post by admin »

Yes, it would be correct then as well.
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 46 guests