Page 1 of 1

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

Posted: Mon Mar 29, 2021 2:21 pm
by pavel.gurinovich
The question is quite confusing especially when you don't see number of answers.
It asks:
Which of the following options avoids a deadlock?
And third option formally avoids deadlock:
The second thread should call getLocks() only after first thread exits out of it.
This is not necessary. Option 2 works just fine.
Should I expect such questions from Oracle regarding concurrency?

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

Posted: Tue Mar 30, 2021 5:31 am
by admin
1. Our simulator does show the number of correct answer (as does the real exam). Not sure why you are not seeing that. May be you are using a customized test where Show Number of Correct Answers option is unchecked.
2. The "should" in option 3 has now been changed to "must" to make it clear.

thanks for the feedback!