阿摩線上測驗 登入

試題詳解

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

試卷資訊

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

年份:104年

科目:OJCP(SCJP)

複選題
第38題 Given: 1. class One{ 2. public One foo(){return this;} 3. } 4. class Two extends One{ 5. public One foo(){return this;} 6. } 7. class Three extends Two{ 8. //insert method here 9. } Which two methods, inserted individually, correctly complete the Three class? (Choose two.)
(A) public void foo(){}
(B) public int foo(){return 3;}
(C) public Two foo(){return this;}
(D) public One foo(){return this;}
(E) public Object foo(){return this;}
正確答案:登入後查看