试题详情
- 单项选择题 class Base { Base() { System.out.print(“Base”); } } public class Alpha extends Base { public static void main( String[] args ) { new Alpha(); new Base(); } } What is the result?()
A、 Base
B、 BaseBase
C、 Compilation fails.
D、 The code runs with no output.
E、 An exception is thrown at runtime.
- B
关注下方微信公众号,在线模考后查看
热门试题
- What creates&en
- 数据类型包装类与基本数据类型有什么关系?
- 下列关于java 中的&ens
- 猴子摘桃问题 猴子第1天摘下若干桃子,当
- 可以通过继承哪个类来创建线程?()
- Which three&ens
- Which two
- 现有代码片段:
- For a gi
- Which two̳
- 下列属于非受检异常的是哪项?()Q
- Java语言中表达式10/3的结果是哪项
- Which statemen
- 关于表格包型布局管理器的特点,一下描述中
- 如果源文件中包含public类,源文件的
- 以下哪些包是Java标准库中常用的包?(
- Which the thre
- Which statemen
- class super&en
- Which pathQ