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

多项选择题

Which two code fragments, inserted independently at line 12, will compile?()

    A.super(name, baseSalary);
    B.this.commission=commission;
    C.super();this.commission=commission;
    D.this.commission = commission;super();
    E.super(name, baseSalary);this.commission=commission;
    F.this.commission=commission;super(name, baseSalary);
    G.super(name, baseSalary, commission);

点击查看答案

相关考题

  • 单项选择题
    What statement is true?()

    A.The code will compile without changes.
    B.The code will compile if public Tree(){Plant();} is added to the Tree class.
    C.The code will compile if public Plant(){Tree();} is added to the Plant class.
    D.The code will compile if public Plant(){this("fern");} is added to the Plant class.
    E.The code will compile if public Plant(){Plant("fern");} is added to the Plant class.

  • 单项选择题
    What is the result?()

    A.Line 26 prints "a" to System.out.
    B.Line 26 prints "b" to System.out.
    C.An exception is thrown at runtime.
    D.Compilation of class A will fail due to an error in line 6.

  • 单项选择题
    What is the result?()

    A.true,true
    B.false,true
    C.true,false
    D.false,false
    E.Compilation fails.
    F.An exception is thrown at runtime.

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

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

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

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