Given: String[] elements = { for, tea, too }; Stri...
单选题

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

发布日期:2020-04-10

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].

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

使用浏览器的分享功能,把这篇文章分享出去

确定