试题详情
- 单项选择题 class A { public A() { System.out.println(“hello from a”); } } class B extends A { public B () { System.out.println(“hello from b”); super(); } } public class Test { public static void main(String args[]) { A a = new B(); } } What is the result when main is executed?()
A、 Compilation fails.
B、 hello from a
C、 hello from b
D、 hello from b hello from a
E、 hello from a hello from b
- A
关注下方微信公众号,在线模考后查看
热门试题
- 当动作监听器激发时,会调用什么函数?()
- 对下面Spring声明式事务的配置含义的
- 在函数中,“return”关键字有哪些作
- One of th
- public class&e
- java中,StringBuilder和
- 下面说法正确的是()
- 在下面的代码中,continue语句的
- 文本框的常用功能函数和属性有哪些?()
- Java的一个重要特点是结构中立性,这种
- A session-scope
- 下面有关maven和ant的描述,描述错
- public static&
- You are b
- public class&e
- A programmer&en
- 关于 JAVA 堆,下面说法错误的是()
- 已知: 则()
- 以下对Scoket类的描述中,错误的是(
- A JSP pa