What are three ways in which a thread can enter the waiting state?

What are three ways in which a thread can enter the waiting state?

Corba
Views: 3299 | Community Opinion: 1

Tags..  Java Interview  Core Java

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Poonam Said..

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.






What do you think? Add your opinion/answer
*Name
*your opinion/answer: