阿摩線上測驗 登入

試題詳解

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

試卷資訊

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

年份:104年

科目:OJCP(SCJP)

第48題 Given: 1. public class Venus{ 2. public static void main(String[] args){ 3. int[] x = {1, 2, 3}; 4. int y[] = {4, 5, 6}; 5. new Venus().go(x, y); 6. } 7. void go(int[]... z){ 8. for(int[] a : z) 9. System.out.print(a[0]); SCJP 6.0 認證教戰手冊 黃彬華著 碁峰出版 26 10. } 11. } What is the result?
(A) 1
(B) 12
(C) 14
(D) 123
(E) Compilation fails. F. An exception is thrown at runtime.
正確答案:登入後查看