About Question enthuware.ocpjp.ii.v11.2.1711 :

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

Moderator: admin

Post Reply
hamzaBlm
Posts: 18
Joined: Thu May 23, 2019 11:58 am
Contact:

About Question enthuware.ocpjp.ii.v11.2.1711 :

Post by hamzaBlm »

I don't understand why option three (It may print any combination except: a, or b, or a, b, or b, a) is the correct answer! Here is my understanding:
I know that thread execution is controller by the OS scheduler and it's impossible to guess the order of code execution of two independent threads. With that being said, option one (It may print any combination of the keys) is the correct answer because there is a possibility that the scheduler might want to execute all the code in the second thread before starting the first one.

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

Re: About Question enthuware.ocpjp.ii.v11.2.1711 :

Post by admin »

Yes, that is a possibility and the output generated in that case is covered in option 3.

fortesp
Posts: 9
Joined: Mon Dec 14, 2020 8:53 am
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.1711 :

Post by fortesp »

I also agree that the the first option should be correct and not just the third. Plus I seriously doubt that such ambiguity is presented in the actual exam (? hopefully)

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

Re: About Question enthuware.ocpjp.ii.v11.2.1711 :

Post by admin »

As mentioned above, the third option includes the case given in the first option. So, if you have to select 1 option, then option 3 is the best option.

nkaragulov
Posts: 17
Joined: Mon Sep 16, 2024 1:49 am
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.1711 :

Post by nkaragulov »

I would call this question and answer to this Super Tough!
For a non english speaking it is a bit harder to understand.

Post Reply

Who is online

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