Current thread method to wait for the specified milliseconds - Core Java

Q.  Which method causes the current thread to wait for the specified milliseconds, until the another thread notifies? (invokes notify() or notifyAll() method)?
- Published on 15 Jul 15

a. public final void wait(long timeout)throws InterruptedException
b. protected void finalize()throws Throwable
c. public final void wait(long timeout,int nanos)throws InterruptedException
d. protected Object clone() throws CloneNotSupportedException

ANSWER: public final void wait(long timeout)throws InterruptedException

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)