classA{2.publicbytefileNumber(){3.returnl;4.}5.}6.7.ClassBextendsA{8.publicshortgetNumbe
13 查阅
1.classA{2.publicbytefileNumber(){3.returnl;4.}5.}6.7.ClassBextendsA{8.publicshortgetNumber(){9.return2;10.}11.12.publicshortgetNumber(){13.Bb=newB();14.System.out.printIn(b.getNumber());15.}16.}Whatistheresult()?
A.Compilationsucceedsandlisprinted.
B.Compilationsucceedsand2printed.
C.Anerroratline8causecompilationtofail.
D.Anerroratline14causecomplicationtofail.
E.Complicationsucceedsbutanexceptionisthrownatline14.
参考答案: