字典翻译 问答 其它 java英语单选题whichmodifiershouldbeapplidetoamethodforthelockofobjectthistobeobtainedpriortoexecutionanyofthemethodbody?a:synchronizedb:abstractc:finald:statice:publicwhichmodifiershouldbeappliedt
问题标题:
java英语单选题whichmodifiershouldbeapplidetoamethodforthelockofobjectthistobeobtainedpriortoexecutionanyofthemethodbody?a:synchronizedb:abstractc:finald:statice:publicwhichmodifiershouldbeappliedt
问题描述:

java英语单选题

whichmodifiershouldbeapplidetoamethodforthelockofobjectthistobeobtainedpriortoexecutionanyofthemethodbody?

a:synchronizedb:abstractc:finald:statice:public

whichmodifiershouldbeappliedtoamethodforthelockofobjectthistobeobtainedpriortoexecutionanyofthemethodbody?

刘惠山回答:
  为了让固定的对象this在执行一个方法体之前就被得到(取得),下面哪个修饰符应该用来修饰这个方法??synchronized方法控制对类成员变量的访问:每个类实例对应一把锁(this),每个synchronized方法都必须获...
点击显示
其它推荐
热门其它推荐
  • 其它