欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > SCJP程序员认证考试

多项选择题

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.

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题