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

public class Test {


public class Test {  public static void main(String[] args) {  String str = NULL;  System.out.println(str);  }  }   What is the result?()  

  • A NULL
  • B Compilation fails.
  • C The code runs with no output.
  • D An exception is thrown at runtime.
参考答案
参考解析:

NULL should be "null".

分类:SCJP程序员认证考试题库