网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Whichthreewillcompileandrunwithoutexception?()
A.privatesynchronizedObjecto;
B.voidgo(){synchronized(){/*codehere*/}
C.publicsynchronizedvoidgo(){/*codehere*/}
D.privatesynchronized(this)voidgo(){/*codehere*/}
E.voidgo(){synchronized(Object.class){/*codehere*/}
F.voidgo(){Objecto=newObject();synchronized(o){/*codehere*/}
参考答案
更多 “ Whichthreewillcompileandrunwithoutexception?() A.privatesynchronizedObjecto;B.voidgo(){synchronized(){/*codehere*/}C.publicsynchronizedvoidgo(){/*codehere*/}D.privatesynchronized(this)voidgo(){/*codehere*/}E.voidgo(){synchronized(Object.class){/*codehere*/}F.voidgo(){Objecto=newObject();synchronized(o){/*codehere*/} ” 相关考题
热门标签
最新试卷