itgle.com

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.p

题目
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;}


相似考题
更多“Given:Whichfivemethods,insertedindependentlyatline5,willcompile?() ”相关问题
  • 第1题:

    Given:What can directly access and change the value of the variable name?()

    A. any class

    B. only the Target class

    C. any class in the test package

    D. any class that extends Target


    参考答案:C

  • 第2题:

    He was() from his position as the president of the university.

    A、moved

    B、removed

    C、awarded

    D、given


    参考答案:B

  • 第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: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

  • 第5题:

    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