Logo F2FInterview

Threads Interview Questions

Q   |   QA

  • Method can be declared as synchronised.
  • A block of code be sychronised.  

Yes, we can declare static method as synchronized. But the calling thread should acquire lock on the class that owns the method.

A thread can execute it's own run() method or another objects run() method.

NORM_PRIORITY 

A condition that occurs when two processes are waiting for each other to complete before proceeding. The result is that both processes wait endlessly.

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: