阿摩線上測驗 登入

試題詳解

試卷:104年 - SCJP 51-100#99391 | 科目:OJCP(SCJP)

試卷資訊

試卷名稱:104年 - SCJP 51-100#99391

年份:104年

科目:OJCP(SCJP)

98. Given: 
15. public class Yippee{ 
16. public static void main(String[] args){
 17. for(int x = 1; x < args.length; x++){ 
18. System.out.print(args[x] + " "); 
19. } 
20. } 
21. } 
and two separate command line invocations:
 java Yippee
 java Yippee 1 2 3 4
 What is the result?
(A) No output is produced. 1 2 3
(B) No output is produced. 2 3 4
(C) No output is produced. 1 2 3 4
(D) An exception is thrown at runtime. 1 2 3
(E) An exception is thrown at runtime. 2 3 4 F. An exception is thrown at runtime. 1 2 3 4
正確答案:登入後查看