What happens when a thread cannot acquire a lock on an object? Ans. 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. - Study24x7
Social learning Network
12 Jan 2024 10:23 AM study24x7 study24x7

What happens when a thread cannot acquire a lock on an object? Ans. 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.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles