试题详情
- 多项选择题Which two statements are true regarding the creation of a default constructor?()
A、 The default constructor initializes method variables.
B、 The default constructor invokes the no-parameter constructor of the superclass.
C、 The default constructor initializes the instance variables declared in the class.
D、 If a class lacks a no-parameter constructor,, but has other constructors, the compiler creates a default constructor.
E、 The compiler creates a default constructor only when there are no other constructors for the class.
- C,E
关注下方微信公众号,在线模考后查看
热门试题
- Which activity
- 实现圆类circle,包含相关的成员变量
- Which two̳
- 声明局部变量时,局部变量将被赋一个默认的
- 2. public&ensp
- 现有: public&en
- A developer&en
- 从运行层面上来看,从四个选项选出不同的一
- public class&e
- 常用的不可见区域有哪些?()
- Which three&ens
- JVM在执行一个Java类时,大致采用以
- 11. double&ens
- Which two̳
- Which two̳
- 1. public&ensp
- 下面哪种布局方式只影响控件的高度,而不影
- Given thatQ
- 将GUI窗口中的组件按照从左到右如打字式
- 求[3,500]内所有素数之和