aspose file tools
The moose likes Mock Exam Errata and the fly likes MindQ's  #28 - Another bad (ambiguous) question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Mock Exam Errata
Reply Bookmark "MindQ Watch "MindQ New topic
Author

MindQ's #28 - Another bad (ambiguous) question

Betty Reynolds
Ranch Hand

Joined: Feb 16, 2000
Posts: 111
28. What exception might a wait() method throw?
The first answer that comes to my mind is IllegalMonitorStateException. The "correct" answer
is InterruptedException.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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).]
Betty Reynolds
Ranch Hand

Joined: Feb 16, 2000
Posts: 111
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.
 
 
subject: MindQ's #28 - Another bad (ambiguous) question
 
Threads others viewed
Can you date this quote
when 400 mark will reach?
5 simple test questions.
Swing included in Programmer Certification?
Average age of Ranchers
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture