The signature of wait()in JLS clearly shows that wait()method throws both IllegalMonitorStateException and InterruptedException so IMO both IllegalMonitorStateException and InterruptedException are valid answers. Regds, Milind
[This message has been edited by Milind (edited April 02, 2000).] [This message has been edited by Milind (edited April 02, 2000).]
posted 19 years ago
Right. This is one of those fill in the blank questions. IMO either answer is correct also, but you get penalized if you don't select InterruptedException. A better way to state this question would be to ask what checked exception might wait() throw.
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
global solutions you can do in your home or backyard