Page 1 of 1

About Question enthuware.ocpjp.v8.2.1547 :

Posted: Thu Apr 22, 2021 2:31 pm
by jme_chg
So A is wrong because:

e.g.

Code: Select all

public synchronized void a() { b(); }

Code: Select all

public synchronized void b() {}
when a() is called, the thread already has the lock on the instance of the class, allowing it to enter b(), is that correct?

Re: About Question enthuware.ocpjp.v8.2.1547 :

Posted: Fri Apr 23, 2021 12:16 am
by admin
Correct.