Skip navigation

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 Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now