Java MCQ Questions for Placement


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

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



 
 

    Discussion

Post your comment / Share knowledge