试题详情
- 单项选择题 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
关注下方微信公众号,在线模考后查看
热门试题