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.
Liked By
Write Answer
Can Java object be locked down for exclusive use by a given thread?
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
07-May-2015