Sunday, December 28, 2014

What happens when a thread cannot acquire a lock on an object

Question:What happens when a thread cannot acquire a lock on an object?

Answer: If a thread attempts to execute a synchronized method or synchronized statement and isunable to acquire an object's lock, it enters the waiting state until the lock becomesavailable.

Tags:Interview Questions, J2EE, Java,

Please submit your Interview Answer for the above Question via replying to this post. Thank you for visiting to our blog, Have a Good Day!.



Sponsor Advertisement



Customer Relationship Management Software

Customer Resource Management Software

CRM software is designed to help businesses in manageing their customer data and customer interaction, access business information, automate sales, marketing and customer support and also manage employee, vendor and partner relationships. ...

No comments:

Post a Comment