Java Developer Question: Download Java Developer PDF

Which three ways in which a thread can enter the waiting state in Java Programming?

Tweet Share WhatsApp

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 Developer PDF Read All 63 Java Developer Questions
Previous QuestionNext Question
Described synchronized methods and synchronized statements in Java Programming?Define preferred size of a component in Java Programming?