MCQOPTIONS
Saved Bookmarks
| 1. |
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 |
| Answer» B. protected void finalize()throws Throwable | |