Basic and Advance Java Question:
Download Job Interview Questions and Answers PDF
What happens when a thread cannot acquire a lock on an object in Java Programming?
Answer:
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.
Download Java Interview Questions And Answers
PDF