日期:2014-05-19  浏览次数:20719 次

java英语单选题哦
which modifier should be applied to a method for the lock of object this to be obtained prior to execution any of the method body?


a:synchronized b:abstract c:final d:static e:public

能大概的翻译一下吗?

------解决方案--------------------
为了获取对象实例的锁在方法体之前,我们应该在方法上加上什么修饰符?
这个题目应该选a
------解决方案--------------------
探讨

为了获取对象实例的锁在方法体之前,我们应该在方法上加上什么修饰符?
这个题目应该选a