This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I came across this question on a mock test Q. 39. 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. Select the most appropriate answer. Answer Given : B. B says the object issuing the call to wait() will halt....sounded a little ambigous to me at first. Am I right in assuming what it means is that the thread (that is object) issues the call to wait()...it actually asks itself to wait, and it waits till it gets a notify() or notifyAll()? Monisha.