可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

class One {  void&ensp


class One {  void foo() {}  }  class Two extends One {   //insert method here  }  Which three methods, inserted individually at line 14, will correctly complete class Two?()

  • A int foo() { /* more code here */ }
  • B void foo() { /* more code here */ }
  • C public void foo() { /* more code here */ }
  • D private void foo() { /* more code here */ }
  • E protected void foo() { /* more code here */ }
参考答案
参考解析:
分类:SCJP程序员认证考试题库
相关推荐

1、若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值

若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值为()A0B-1C1D2

2、class One {  public&en

class One { public One() { System.out.print(1); } } class Two extends One { public Tw...

3、AMPS属于()。

AMPS属于()。A1GB2GC3GD4G

4、cAMP(cyclic AMP)

cAMP(cyclic AMP)

5、表达式10>5&&6%3的值是()

表达式10>5&&6%3的值是()A-1B非零值C0D1

6、AMPS

AMPS