欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCJP程序员认证考试

多项选择题

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.

点击查看答案&解析

相关考题

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

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