java英语单选题which modifier should be applide to a method for th

java英语单选题
which modifier should be applide 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
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?
清26 1年前 已收到1个回答 举报

Alout 幼苗

共回答了25个问题采纳率:88% 举报

为了让固定的对象this在执行一个方法体之前就被得到(取得),下面哪个修饰符 应该用来修饰 这个方法 ??synchronized 方法控制对类成员变量的访问:每个类实例对应一把锁(this),每个 synchronized 方法都必须获...

1年前

1
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.038 s. - webmaster@yulucn.com