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