试题详情
- 单项选择题 public class SomeException { } Class a: public class a { public void doSomething() { } } Class b: public class b extends a { public void doSomething() throws SomeException { } } Which is true about the two classes?()
A、 Compilation of both classes will fail.
B、 Compilation of both classes will succeed.
C、 Compilation of class a will fail. Compilation of class b will succeed.
D、 Compilation of class a will fail. Compilation of class a will succeed.
- D
关注下方微信公众号,在线模考后查看
热门试题
- 计算s=2!+4!+8!+11!。(首先
- 计算两个数的最大公约数
- Which the two&
- 在linux系统中,有一个文件夹里面有若
- class TestApp{
- Which are̳
- 11. public&ens
- class Super&en
- 下列有关抽象类的叙述正确的是哪项?()&
- 下面有关java实例变量,局部变量,类变
- If this s
- 现有如F包结构: &ensp
- For debugging&
- Which is e
- 现有: class
- 以下关于Applet和Java程序之间关
- 求解“百鸡问题”。已知公鸡每只3元,母鸡
- 已知关系R(F,G,H,I,J)及其上的
- You web a
- What is th