试题详情
- 单项选择题 String[] elements={"for","tea","too"}; String first=(elements.length>0)?elements[0]null; What is the result?()
A、Compilation fails.
B、An exception is thrown at runtime.
C、The variable first is set to null.
D、The variable first is set to elements[0].
- D
关注下方微信公众号,在线模考后查看
热门试题
- 已知: 如果程序输出101,则在横线处
- 下面关于try、catch和finall
- 如何设定包访问级的成员函数或成员变量()
- What is th
- public class&e
- Which two code frag
- class TestMain
- Java语言中常量的定义是哪项?()
- When usingQ
- Java只支持单继承,也就是说子类只能有
- Which two̳
- ClassOne.java
- 当对Set类型的集合使用add()方法时
- Which the two&
- 把一张一元钞票,换成一分、二分和五分硬币
- A developer&en
- int x =&e
- 用JavaApplication编写一个
- What is th
- Given: p