Multi Threading

© examsiri.com
Question : 6 of 44
 
Marks: +1, -0
Given:
1. void waitForSignal() {
2.   Object obj = new Object();
3.   synchronized (Thread.currentThread()) {
4.    obj.wait();
5.    obj.notify();
6.   }
7. }

Which statement is true?
Go to Question: