LATEST UPDATES

Friday 18 November 2016

What is the difference between a synchronized method and a synchronized block ?

In Java programming, each object has a lock. 
A thread can acquire the lock for an object by using the synchronized keyword. 
The synchronized keyword can be applied in a method level  or block level of code.

No comments:

Post a Comment

Designed By Blogger Templates