ProAnswers.org

What is the purpose of Synchronized block?

Synchronized block is used to lock an object for any shared resource.

Scope of synchronized block is smaller than the method.