Whichstatements,wheninsertedattheindicatedpositioninthefollowingcode,willcausear
Whichstatements,wheninsertedattheindicatedpositioninthefollowingcode,willcausearuntimeexceptionwhenattemptingtoruntheprogram?()classA{}classBextendsA{}classCextendsA{}publicclassQ3ae4{publicstaticvoidmain(Stringargs[]){Ax=newA();By=newB();Cz=newC();//insertstatementhere}}
A.x=y;
B.z=x;
C.y=(B)x;
D.z=(C)y;
E.y=(A)y;
正确答案:参考C
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
