

MCQOPTIONS
Saved Bookmarks
This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Java 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. | |