A.对
B.错
第1题
A.p0=p1;
B.p1=p2;
C.p2=p4;
D.p2=(ClassC)p1;
E.p1=(ClassB)p3;
F.p2=(ClassC)p4;
第2题
A.p0=p1;
B.p1=p2;
C.p2=p4;
D.p2=(ClassC)p1;
E.p1=(ClassB)p3;
F.p2=(ClassC)p4;
第3题
A.p0=pl;
B.p1=p2;
C.p2=p4;
D.p2=(ClassC)pl;
E.p1=(ClassB)p3;
F.p2=(Classc)p4;
第4题
A.publicvoidadd(Cc){c.getValue();}
B.publicvoidadd(Bb){b.getValue();}
C.publicvoidadd(Aa){a.getValue();}
D.publicvoidadd(Aa,Bb){a.getValue();}
E.publicvoidadd(Cc1,Cc2){c1.getValue();}
第5题
A.Compilationfailsbecauseofanerrorinline3.
B.Compilationfailsbecauseofanerrorinline7.
C.Compilationfailsbecauseofanerrorinline9.
D.IfyoudefineDe=newE(),thene.bMethod()invokestheversionofbMethod()definedinLine5.
E.IfyoudefineDe=(D)(newE()),thene.bMethod()invokestheversionofbMethod()definedinLine5.
F.IfyoudefineDe=(D)(newE()),thene.bMethod()invokestheversionofbMethod()definedinLine9.
第6题
A.Compilationwillsucceedifaextendsb.
B.Compilationwillsucceedifbextendsa.
C.Compilationwillalwaysfailbecauseofanerrorinline7.
D.Compilationwillalwaysfailbecauseofanerrorinline8.
第7题
A.Thecoderunswithnooutput.
B.Anexceptionisthrownatruntime.
C.Compilationfailsbecauseofanerrorinline20.
D.Compilationfailsbecauseofanerrorinline21.
E.Compilationfailsbecauseofanerrorinline23.
F.Compilationfailsbecauseofanerrorinline25.
第8题
A.x.a2();
B.z.a2();
C.z.c1();
D.z.a1();
E.y.c1();
F.x.a1();
第9题
A.0,0,0
B.150,60,0
C.Compilationfails.
D.150,150,150
E.Anexceptionisthrownatruntime.
第10题
A.peep
B.bark
C.meow
D.Compilationfails.
E.Anexceptionisthrownatruntime.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!