Friday, 22 April 2016

Can two threads call two different static synchronized methods of the same class ?


No
The static synchronized methods of the same class always block each other as only one lock per class exists.

So, No two static synchronized methods (of same class) can execute at the same time.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.