Page 1 of 1

About Question enthuware.ocpjp.v7.2.1559 :

Posted: Mon Jun 24, 2013 2:10 am
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.

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

Posted: Mon Jun 24, 2013 6:23 am
by admin
You can't call wait on B if you don't have a lock on B first.