阿摩線上測驗 登入

試題詳解

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

試卷資訊

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

年份:104年

科目:OJCP(SCJP)

第42題 1. class A{ 2. public String doit(int x, int y){ 3. return "a"; 4. } 5. 6. public String doit(int... vals){ 7. return "b"; 8. } 9. } Given: 25. A a = new A(); 26. System.out.println(a.doit(4, 5)); What is the result?
(A) Line 26 prints "a" to System.out.
(B) Line 26 prints "b" to System.out.
(C) An exception is thrown at runtime.
(D) Compilation of class A will fail due to an error in line 6.
正確答案:登入後查看

詳解 (共 1 筆)

推薦的詳解#6171717
未解鎖
java 复制代码 class A ...
(共 1117 字,隱藏中)
前往觀看
0
0