title: difference between synchronizing a static method and a non static method
body: <p>What is the difference between synchronizing a static method and a non static method in java?Can anybody please explain with an example. Also is there any difference in synchronizing a method and synchronizing a block of code?</p>