Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of these method is used to tell the calling thread to give up a monitor and go to sleep until some other thread enters the same monitor?

A. wait()
B. notify()
C. notifyAll()
D. sleep()
Answer» B. notify()
2.

Which of this method is used to avoid polling in Java?

A. wait()
B. notify()
C. notifyAll()
D. all of the mentioned
Answer» E.
Previous Next