| Author |
exception in sync block
|
Rajani Deshpande
Ranch Hand
Joined: May 08, 2000
Posts: 45
|
|
|
If an exception is thrown inside a synchronized block will the lock on the object that was synchronized be automatically released?
|
 |
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18670
|
|
|
Yes. (Unless the exception is also caught inside the synhronized block.)
|
"I'm not back." - Bill Harding, Twister
|
 |
 |
|
|
subject: exception in sync block
|
|
|