试题详情
- 多项选择题Which two statements are true regarding the creation of a default constructor? ()
A、 The default constructor initializes method variables.
B、 The compiler always creates a default constructor for every class.
C、 The default constructor invokes the no-parameter constructor of the superclass.
D、 The default constructor initializes the instance variables declared in the class.
E、 When a class has only constructors with parameters, the compiler does not create a default constructor.
- D,E
关注下方微信公众号,在线模考后查看
热门试题
- Which statemen
- 为了保证方法的线程安全,声明方法的时候必
- 为了区分重载多态中同名的不同方法,要求(
- 建立Sochet类的服务器端需要哪些步骤
- A JavaBeans&en
- 编写一个Java程序将当100,101,
- 小明设计了如下的学籍管理系统:&ensp
- 11.classa {&en
- Which two
- Which three&ens
- Which two̳
- For a gi
- 1. public&ensp
- Which fourQ
- A company&ensp
- 下列哪项是String的字面量?()
- You need
- Java中的时间利用时间处理类进行处理。
- 鼠标监听器有哪些特点?()
- 哪些情况下线程会停止()