7. waitForSignal(){ 8. object obj=new object(); 9. synchronized (Thread currentThread()){ 10.obj.wait(); 11.obj.notify(); 12.} 13.} Which statement is true?
A.Code may throw an InterruptedException. B.Code may throw an IllegalStateException. C.Code may throw a TimeOutException after 10 minutes. D.This code will not compile.
View All Comments
| View Tutorial