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
πŸ’¬ Discuss
βœ… Correct Answer: (A) public final void wait(long timeout)throws InterruptedException

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
282
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Vishal Gupta
Publisher
πŸ“ˆ
94%
Success Rate