itgle.com

Whichtwocodefragments,insertedindependentlyatline12,willcompile?()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.co

题目
Whichtwocodefragments,insertedindependentlyatline12,willcompile?()

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);


相似考题
更多“Whichtwocodefragments,insertedindependentlyatline12,willcompile?() ”相关问题
  • 第1题:

    Given:Which four code fragments, inserted independently at line 7, will compile?()

    A.public void m1() { }

    B.protected void m1() { }

    C.private void m1() { }

    D.void m2() { }

    E.public void m2() { }

    F.protected void m2() { }

    G.private void m2() { }


    参考答案:A, B, E, F

  • 第2题:

    Given:Whichfivemethods,insertedindependentlyatline5,willcompile?()

    A.protectedintblipvert(longx){return0;}

    B.protectedlongblipvert(intx){return0;}

    C.privateintblipvert(longx){return0;}

    D.privateintblipvert(intx){return0;}

    E.publicintblipvert(intx){return0;}

    F.protectedlongblipvert(longx){return0;}

    G.protectedlongblipvert(intx,inty){return0;}


    参考答案:A, C, E, F, G

  • 第3题:

    Given:Whichthreecodefragments,insertedindependentlyatline6,willcompile?()

    A.list.add("foo");

    B.Objecto=list;

    C.Strings=list.get(0);

    D.list=newArrayList();


    参考答案:B, C, D

  • 第4题:

    Given:Whichtwocodefragments,insertedindependentlyatline5,willcompilewithoutwarnings?()

    A.publicvoidaddStrings(Listlist){

    B.publicvoidaddStrings(List<String>list){

    C.publicvoidaddStrings(List<?superString>list){

    D.publicvoidaddStrings(List<?extendsString>list){B,C


    参考答案:B, C

  • 第5题:

    Given:Whichtwocodefragments,insertedindependentlyatline3,generatetheoutput4247?()

    A.Strings="123456789";s=(s-"123").replace(1,3,"24")-"89";

    B.StringBuffers=newStringBuffer("123456789");

    C.sdelete(0,3).replace(1,3,";24";).delete(4,6);

    D.substring(3,6).delete(1,3).insert(1,&ensp;";24";);


    参考答案:B, C