Originally posted by rex tony:
Synchronized blocks place locks for shorter periods than synchronized methods.
How?
Unfortunately, this is not true. You can have methods that run for short periods or long periods. You can have blocks that run for short periods or long periods.
Maybe your instructor was trying to say that with synchronized blocks, you can have a finer scope than with synchronized methods -- as a method may contain many blocks of code.
Henry