Whichtwo choicesareequivalent?()A.16>4B.16/2C.16*4D.16>>2E.16/22F.16>>>2

题目
Whichtwo choicesareequivalent?()

A.16>4

B.16/2

C.16*4

D.16>>2

E.16/22

F.16>>>2


相似考题
更多“Whichtwo choicesareequivalent?() ”相关问题
  • 第1题:

    DateFormatdf;15.Datedate=newDate();16.//insertcodehere17.Strings=df.format(date);Whichtwo,insertedindependentlyatline16,allowthecodetocompile?()

    A.df=newDateFormat();

    B.df=Date.getFormatter();

    C.df=date.getFormatter();

    D.df=date.getDateFormatter();

    E.df=DateFormat.getDateInstance();

    F.df=DateFormat.getInstance();


    参考答案:E, F

  • 第2题:

    Given:Which two, inserted at line 11, will allow the code to compile?()

    A.public class MinMax<?> {

    B.public class MinMax<? extends Number> {

    C.public class MinMax<N extends Object> {

    D.public class MinMax<N extends Number> {

    E.public class MinMax<? extends Object> {

    F.public class MinMax<N extends Integer> {


    参考答案:D, F

  • 第3题:

    Given:11.//insertcodehere12.&e

    Given:

    11.//insertcodehere

    12.privateNmin,max;

    13.publicNgetMin(){returnmin;}

    14.publicNgetMax(){returnmax;}

    15.publicvoidadd(Nadded){

    16.if(min==null||added.doubleValue()<min.doubleValue())

    17.min=added;

    18.if(max==null||added.doubleValue()>max.doubleValue())

    19.max=added;

    20.}

    21.}

    Whichtwo,insertedatline11,willallowthecodetocompile?()


    参考答案:B, D

  • 第4题:

    ArraryLista=newArrayList();a.add(Alpha”);a.add(Bravo”):a.add(Charlie”);a.add(Delta”);Iteratoriter=a.iterator();Whichtwo,addedatline17,printthenamesintheArrayListinalphabeticalorder?()

    A.for(inti=0;i<a.size();i++) System.out.println(a.get(i)));

    B.for(inti=0;i<a.size();i++) System.out.println(a[i]);

    C.while(iter.hasNext()) System.out.println(iter.next());

    D.for(inti=0,i<a.size();i++) System.out.println(iter[i]);

    E.for(inti=0;i<a.size();i++) System.out.println(iter.get(i));


    参考答案:A, C

  • 第5题:

    Given:Which two, independently, will allow Sub to compile?()

    A.

    B.

    C.

    D.

    E.


    参考答案:C, D

  • 第6题:

    Given:Whichtwo,placedonline13,willproducetheoutputgobstopper?()

    A.System.load("prop.custom");

    B.System.getenv("prop.custom");

    C.System.property("prop.custom");

    D.System.getProperty("prop.custom");

    E.System.getProperties().getProperty("prop.custom");


    参考答案:D, E