可学答题网 > 问答 > Java认证考试综合练习题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

String[] elements={"for",&q


String[] elements={"for","tea","too"}; String first=(elements.length>0)?elements[0]null; What is the result?()

  • ACompilation fails.
  • BAn exception is thrown at runtime.
  • CThe variable first is set to null.
  • DThe variable first is set to elements[0].
参考答案
参考解析:
分类:Java认证考试综合练习题库