單項選擇題

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.

微信掃碼免費搜題