Whichthreewillcompileandrimwithoutexception?() 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*/}}

Whichthreewillcompileandrimwithoutexception?()

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*/}}


相关考题: