ragi singh wrote:
can anyone explain what a class level lock is and what an object lock is ?
ragi singh wrote:
can we acquire a class level lock in another class ie if we have two classes , class ABC and class DEF .can class DEF acquire the class level lock for ABC , and if it can please explain with code
Possible with help of synchronized block[also known as critical section]
hope this helps