同步及静态方法的锁对象

同步方法锁对象:this

静态锁对象:当前类的class对象

同步代码块锁对象:任意对象

posted @ 2016-07-18 23:25  huangssd  阅读(1769)  评论(0编辑  收藏  举报