可学答题网 > 问答 > OCJP(310-065)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Given: String[] elements =&


Given: 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].
参考答案
参考解析:
分类:OCJP(310-065)题库
相关推荐

1、String[] elements = {&

String[] elements = { for, tea, too }; String first = (elements.length > 0)? elements[0]&...

2、Given: 35.String #name =&en

Given:35.String #name = "Jane Doe";36.int $age = 24;37.Double _height = 123.5;38.double ~temp = ...

3、Given that the element

Given that the elements of a PriorityQueue are ordered according to natural ordering, and: Wh...

4、表达式10>5&&6%3的值是()

表达式10>5&&6%3的值是()A-1B非零值C0D1

5、连接式“2+3”&“=”&(2+3)的运算结果为( )。 A

连接式“2+3”&“=”&(2+3)的运算结果为( )。 A.“2+3=2+3” B.“2+3=5” C.“5=5” D.“5=2+3”A“2+3=2+3” B“2+3=5” C“5=5” D“5=2+3”

6、Given the element from

Given&ensp;the&ensp;element&ensp;from&ensp;the&ensp;web&ensp;application&ensp;deployment&ensp;descriptor:<jsp-property-group><url-pattern>/main/page1.jsp</url-patte...