Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Vague question: wait()

 
Cathy Song
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
4Tests website

5.What is the effect of issuing a wait() method on an object
a.If a notify() method has already been sent to that object then it has no effect
b.The object issuing the call to wait() will halt until another object sends a notify() or notifyAll() method
c.An exception will be raised
d.The object issuing the call to wait() will be automatically synchronized with any other objects using the receiving object.

The answer given is b. I think none of the options are correct.
Am I right?
Thanks.
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you are right I would have said: the thread issuing the call to wait...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic