Q. Which method causes the current thread to wait for the specified milliseconds, until the another thread notifies? (invokes notify() or notifyAll() method)?
β
Correct Answer: (A)
public final void wait(long timeout)throws InterruptedException