This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Vague question: wait()" Watch "Vague question: wait()" New topic

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?
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:
subject: Vague question: wait()
It's not a secret anymore!