About Question enthuware.ocpjp.v7.2.1559 :

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

Moderator: admin

Post Reply
The_Nick
Posts: 132
Joined: Thu May 16, 2013 9:23 am
Contact:

About Question enthuware.ocpjp.v7.2.1559 :

Post by The_Nick »

Hi,
The only case that this scenario might happen is when a thread access a synchronized block with a lock on object A and then inside the synchronized block the call to wait is on object B. isn't it?

Thanks in advance.

The_Nick.

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

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

Post by admin »

You can't call wait on B if you don't have a lock on B first.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 218 guests