voidwaitForSignal(){Objectobj=newObject();synchronized(Thread.currentThread()){obj.wait();obj.notify();}}Whichistrue?()
A.ThiscodemaythrowanInterruptedException.
B.ThiscodemaythrowanIllegalStateException.
C.ThiscodemaythrowaTimeoutExceptionaftertenminutes.
D.Thiscodewillnotcompileunless“obj.wait()”isreplacedwith“((Thread)obj).wait()”.
E.Reversingtheorderofobj.wait()andobj.notify()maycausethismethodtocompletenormally.
F.Acalltonotify()ornotifyAll()fromanotherthreadmaycausethismethodtocompletenormally.