Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


synchronized methods and synchronized statements?


Yes. You can lock an object by putting it in a “synchronized” block. The locked object is inaccessible to any thread other than the one that explicitly claimed it. If a thread attempts to execute a synchronized method or synchronized statement and is unable to acquire an object’s lock, it enters the waiting state until the lock becomes available.


asked Sep 13, 2013 in Core java by ashish singh
edited Sep 12, 2013
0 votes
18 views



Related Hot Questions



Government Jobs Opening


...