阿摩線上測驗 登入

試題詳解

試卷:104年 - SCJP 1-50#41416 | 科目:OJCP(SCJP)

試卷資訊

試卷名稱:104年 - SCJP 1-50#41416

年份:104年

科目:OJCP(SCJP)

第9題 Given: 11. String[] elements = {"for", "tea", "too"}; 12. 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]
正確答案:登入後查看

詳解 (共 2 筆)

推薦的詳解#2181547
未解鎖
Given:11.    String[...
(共 385 字,隱藏中)
前往觀看
10
0
推薦的詳解#2319654
未解鎖
三元運算子(條件式) ? "符合條件的答...
(共 205 字,隱藏中)
前往觀看
2
0