Specifications
Sun Services
Java™ Programming Language
Module 13, slide 20 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Releasing the Lock Flag
The lock flag is released in the following events:
• Released when the thread passes the end of the
synchronized code block
• Released automatically when a break, return, or
exception is thrown by the synchronized code block










