Jasper Reports Developer Question:
Download Questions PDF

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

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 Jasper Reports Developer Interview Questions And Answers PDF

Previous QuestionNext Question
What are synchronized methods and tell me about the synchronized statements in Java Programming?Can lock be acquired on a class in Java Programming?