可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

public class Test {&en


public class Test {  private static float[] f = new float[2];  public static void main(String args[]) {  System.out.println(“f[0] = “ + f[0]);  }  }   What is the result?()  

  • A f[0] = 0
  • B f[0] = 0.0
  • C Compilation fails.
  • D An exception is thrown at runtime.
参考答案
参考解析:
分类:SCJP程序员认证考试题库