About Question enthuware.ocpjp.v8.2.1547 :
Posted: Thu Apr 22, 2021 2:31 pm
So A is wrong because:
e.g.
when a() is called, the thread already has the lock on the instance of the class, allowing it to enter b(), is that correct?
e.g.
Code: Select all
public synchronized void a() { b(); }
Code: Select all
public synchronized void b() {}