Page 1 of 1

About Question enthuware.ocpjp.v7.2.1423 :

Posted: Fri May 16, 2014 5:11 am
by Elmcrest
Hello!

I've chosen the option False because I thought that locks like java.util.concurrent.locks.Lock must be handled/released by the programmer in all cases (including exception situations)? Am I wrong?

Kind regards

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

Posted: Fri May 16, 2014 6:42 am
by admin
It is true that java.util.concurrent.locks.Lock must be released by the programmer explicitly but the question is talking about the locks acquired due the usage of synchronized keyword. I agree that "any locks" can lead to the you interpretation.
The problem statement has now been updated to make it clear.

thank you for your feedback!
Paul.