11.classCup{}12.classPoisonCupextendsCup{}21.publicvoidtakeCup(Cupc){22.if(cinstanceofPoisonCup){23.System.out.println(”Inconceivable!”);24.}elseif(cinstanceofCup){25.System.out.println(”Dizzyingintellect!”);26.}else{27.System.exit(0);28.}29.}Andtheexecutionofthestatements:Cupcup=newPoisonCup();takeCup(cup);Whatistheoutput?()A.Inconceivable!B.Dizzyingintellect!C.Thecoderunswithnooutput.D.Anexceptionisthrownatruntime.E.Compilationfailsbecauseofanerrorinline22.

11.classCup{}12.classPoisonCupextendsCup{}21.publicvoidtakeCup(Cupc){22.if(cinstanceofPoisonCup){23.System.out.println(”Inconceivable!”);24.}elseif(cinstanceofCup){25.System.out.println(”Dizzyingintellect!”);26.}else{27.System.exit(0);28.}29.}Andtheexecutionofthestatements:Cupcup=newPoisonCup();takeCup(cup);Whatistheoutput?()

A.Inconceivable!

B.Dizzyingintellect!

C.Thecoderunswithnooutput.

D.Anexceptionisthrownatruntime.

E.Compilationfailsbecauseofanerrorinline22.


相关考题:

勺子的英文意思为( )。A.spoonB.cupC.tinD.mold

下列温度传感器中()不属于电压型集成温度传感器、 ALM35/45BAd590CUpc616DAN6701S

商品条码的英文名称是()。A25码BEAN码CUPC码D39码

中央处理器的英文缩写是()。A.UCPB.CUPC.CPUD.PCU