Home > DeveloperSection > Interviews > What is the purpose of Synchronized block?

Posted on    May-07-2015 11:50 PM

 Java Java 
Ratings:
 1 Answer(s)
  404  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    May-07-2015 11:50 PM

  • Synchronized block is used to lock an object for any shared resource.
  • Scope of synchronized block is smaller than the method.

Don't want to miss updates? Please click the below button!

Follow MindStick