try-catch中的同步代码块

在try-catch包裹的synchronized代码块如果抛出异常,则释放锁

解释是只要跳出synchronized代码块就会释放锁。。

猜你喜欢

转载自xiaoxiaoher.iteye.com/blog/2356153