阿摩線上測驗 登入

試題詳解

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

試卷資訊

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

年份:104年

科目:OJCP(SCJP)

第28題 Given: 1. class X{ 2. X(){System.out.print(1);} 3. X(int x){ 4. this(); 5. System.out.print(2); 6. } 7. } 8. public class Y extends X{ 9. Y(){ 10. super(6); 11. System.out.print(3); 12. } 13. Y(int y){ 14. this(); 15. System.out.println(4); 16. } 17. public static void main(String[] a){new Y(5);} 18. } What is the result?
(A) 13
(B) 134
(C) 1234
(D) 2134
(E) 2143 F. 4321
正確答案:登入後查看

詳解 (共 1 筆)

推薦的詳解#2974079
未解鎖
先看main:宣告y類別物件並給 參數5...
(共 197 字,隱藏中)
前往觀看
0
0