public class ArrayTest { public static void main(String[] args) { float fl[], f2[]; fl = new float[10]; f2 = f1; System.out.println(“f2[0]= “ + f2[0]); } } What is the result?()
- A、 It prints f2[0] = 0.0.
- B、 It prints f2[0] = NaN.
- C、 An error at line 5 causes compile to fail.
- D、 An error at line 6 causes compile to fail.
- E、 An error at line 6 causes an expectation at runtime.
正确答案:A
答案解析:有
微信扫一扫手机做题