About Question enthuware.ocpjp.v7.2.1423 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
Elmcrest
Posts: 12
Joined: Sat Apr 20, 2013 10:06 am
Contact:

About Question enthuware.ocpjp.v7.2.1423 :

Post 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

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

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

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

Post Reply

Who is online

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