What is the purpose of Synchronized block?

Total Post:807

Points:4035
Java 
 733  View(s)
Ratings:
Rate this:
  1. Post:807

    Points:4035
    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.

      Modified On Mar-28-2018 02:17:18 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!