Java

Topic: Java.lang.object

Explain method wait(long timeout, int nanos)  in java?

 Causes the current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.

Browse random answers: