synchronized block vs synchronized method?

Posted by Warrior on Stack Overflow See other posts from Stack Overflow or by Warrior
Published on 2009-02-22T03:13:48Z Indexed on 2010/05/10 4:18 UTC
Read the original article Hit count: 268

Filed under:
|
|

Can any one tell me the advantage of synchronized method over synchronized block with an example?Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about multithreading