
what is the difference between synchronized method and block??

Hello Friend,
Differences:
1)Synchronized blocks place locks for shorter periods than synchronized methods.
2)Synchronized method allows only one user to use it at any given time and the request will be queued and are executed while Statements in the synchronized block are executed sequentially.
Thanks