Basic and Advance Java Question:
Download Job Interview Questions and Answers PDF
What are three ways in which a thread can enter the waiting state in Java Programming?
![Java Interview Answer Java Interview Question](https://globalguideline.com/public/images/interview/6.png)
Answer:
A thread can enter the waiting state by invoking its sleep() method, by blocking on I/O, by unsuccessfully attempting to acquire an object’s lock, or by invoking an object’s wait() method. It can also enter the waiting state by invoking its (deprecated) suspend() method.
Download Java Interview Questions And Answers
PDF
Previous Question | Next Question |
What are synchronized methods and synchronized statements in Java Programming? | Can a lock be acquired on a class in Java Programming? |