Logo F2FInterview

Threads Interview Questions

Q   |   QA

notify() method moves a thread out of the waiting pool to ready state, but there is no guaranty which thread will be moved out of the pool. 


When a Thread calls the sleep() method, it will return to its waiting state. When a Thread calls the yield() method, it returns to the ready state. 

Daemon is a low priority thread which runs in the backgrouund. 

We should call setDaemon(true) method on the thread object to make a thread as daemon thread. 

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: