aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Vague question: wait() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Vague question: wait()" Watch "Vague question: wait()" New topic
Author

Vague question: wait()

Cathy Song
Ranch Hand

Joined: Aug 24, 2003
Posts: 270
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

Joined: Jul 03, 2001
Posts: 2120
Yes you are right I would have said: the thread issuing the call to wait...


SCJP2. Please Indent your code using UBB Code
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Vague question: wait()