试题详情
多项选择题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
  • 关注下方微信公众号,在线模考后查看

热门试题