Skip navigation

We will update our Privacy Policy soon. Please see the preview.

Synchronized block

Synchronized block: Learning Java Threads
Synchronized block: Learning Java Threads

A synchronized block of statements is identified by a header that identifies the object whose lock is to be acquired. It has the following syntax: synchronized(object) { /* statements */ } According to this syntax, object is an arbitrary object reference. The lock is associated with this object. This concept is probably best explained with an example.

Resume Transcript Auto-Scroll
Skill Level Intermediate
1h 9m
Show More Show Less
Skills covered in this course
Development Tools Developer Programming Languages Java

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month