itgle.com

Whichfivemethods,insertedindependentlyatline5,willcompile?()A.publicintblipvert(intx){return0;}B.privateintblipvert(intx){return0;}C.privateintblipvert(longx){return0;}D.protectedintblipvert(longx){return0;}E.protectedlongblipvert(longx){return0;}F.protec

题目
Whichfivemethods,insertedindependentlyatline5,willcompile?()

A.publicintblipvert(intx){return0;}

B.privateintblipvert(intx){return0;}

C.privateintblipvert(longx){return0;}

D.protectedintblipvert(longx){return0;}

E.protectedlongblipvert(longx){return0;}

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


相似考题
参考答案和解析
参考答案:A, C, D, E, F
更多“Whichfivemethods,insertedindependentlyatline5,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: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

  • 第4题:

    Given:Whichthreecodefragments,insertedindependentlyatline6,willcompile?()

    A.list.add("foo");

    B.Objecto=list;

    C.Strings=list.get(0);

    D.list=newArrayList();


    参考答案:B, C, D