• +91 9723535972
  • info@interviewmaterial.com

Java Interview Questions and Answers

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

Answer - A thread can enter the waiting state by invoking its sleep() method, by blocking on IO, 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.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners