Logo F2FInterview

Threads Interview Questions

Q   |   QA

wait() method releases CPU, releases objects lock, the thread enters into pool of waiting threads.

notifyAll() method moves all waiting threads from the waiting pool to ready state. 

The java.lang.Object class wait() method throws "InterruptedException". 

The yield() method puts currently running thread in to ready state. 

A Thread dies after completion of run() method. 

In order to link this F2FInterview's page as Reference on your website or Blog, click on below text area and pres (CTRL-C) to copy the code in clipboard or right click then copy the following lines after that paste into your website or Blog.

Get Reference Link To This Page: (copy below code by (CTRL-C) and paste into your website or Blog)
HTML Rendering of above code: