Interview Questions

Suppose you have thread and it is in static synchronized method and now can thread enter other static synchronized method from that method?

Java Interview Questions and Answers (part 4)


(Continued from previous question...)

45. Suppose you have thread and it is in static synchronized method and now can thread enter other static synchronized method from that method?

Yes, here when thread is in static synchronized method it must be holding lock on class’s class object and using that lock thread can enter other static synchronized method.

(Continued on next question...)

Other Interview Questions