About Question enthuware.ocpjp.v8.2.1547 :

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

Moderator: admin

Post Reply
jme_chg
Posts: 29
Joined: Sun Feb 07, 2021 6:30 pm
Contact:

About Question enthuware.ocpjp.v8.2.1547 :

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

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

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

Post by admin »

Correct.
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 27 guests