题目内容

classClassA{publicintnumberOfinstances;protectedClassA(intnumberOfinstances){this.numberOflnstances=numberOfinstances;}}publicclassExtendedAextendsClassA{privateExtendedA(intnumberOfinstances){super(numberOflnstances);}publicstaticvoidmain(String[]args){ExtendedAext=newExtendedA(420);System.out.print(ext.numberOflnstances);}}Whichistrue?()

A. 420istheoutput.
B. Anexceptionisthrownatruntime.
C. Allconstructorsmustbedeclaredpublic.
D. ConstructorsCANNOTusetheprivatemodifier.
E. ConstructorsCANNOTusetheprotectedmodifier.

查看答案
更多问题

在原子吸收分光光度法中,点火和熄火均采用乙炔-空气火焰过渡的办法。()

酮苯脱蜡装置所采用的二元溶剂是丙酮和甲苯。()

重铬酸钾法在酸性条件下使用,也可在碱性及中性条件下使用。()

两个正弦交流电的相位差与频率无关。()

答案查题题库