找考题网-背景图
单项选择题

publicclassArrayTest{publicstaticvoidmain(String[]args){floatfl[],f2[];fl=newfloat[10];f2=f1;System.out.println(f2[0]=+f2[0]);}}Whatistheresult?()

A.Itprintsf2[0]=0.0.
B.Itprintsf2[0]=NaN.
C.Anerroratline5causescompiletofail.
D.Anerroratline6causescompiletofail.
E.Anerroratline6causesanexpectationatruntime.
热门试题