阿摩線上測驗 登入

試題詳解

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

試卷資訊

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

年份:104年

科目:OJCP(SCJP)

第29題 Given: SCJP 6.0 認證教戰手冊 黃彬華著 碁峰出版 15 1. public class A{ 2. public void doit(){ 3. } 4. public String doit(){ 5. return "a"; 6. } 7. public double doit(int x){ 8. return 1.0; 9. } 10. } What is the result?
(A) An exception is thrown at runtime.
(B) Compilation fails because of an error in line 7.
(C) Compilation fails because of an error in line 4.
(D) Compilation succeeds and no runtime errors with class A occur.
正確答案:登入後查看

詳解 (共 1 筆)

推薦的詳解#2960438
未解鎖
method名稱相同,且接收的資料型別相...
(共 32 字,隱藏中)
前往觀看
10
0