参考答案和解析
参考答案:D
更多“Given:If some sort of exception is thrown at line 34, which output is possible?() ”相关问题
  • 第1题:

    Given:Which code, inserted at line 16, correctly retrieves a local instance of a Point object?()

    A.Point p = Line.getPoint();

    B.Line.Point p = Line.getPoint();

    C.Point p = (new Line()).getPoint();

    D.Line.Point p = (new Line()).getPoint();


    参考答案:D

  • 第2题:

    Given:What,insertedatline39,willsortthekeysinthepropsHashMap?()

    A.Arrays.sort(s);

    B.s=newTreeSet(s);

    C.Collections.sort(s);

    D.s=newSortedSet(s);


    参考答案:B

  • 第3题:

    4、exception类中有哪个函数?

    A.which()

    B.what()

    C.when()

    D.where()


    what()

  • 第4题:

    Given:35.Stringname="JaneDoe";36.int$age=24;37.Double_height=123.5;38.double~temp=37.5;Whichtwostatementsaretrue?()

    A.Line35willnotcompile.

    B.Line36willnotcompile.

    C.Line37willnotcompile.

    D.Line38willnotcompile.


    参考答案:A, D

  • 第5题:

    exception类中有哪个函数?

    A.which()

    B.what()

    C.when()

    D.where()


    what()

  • 第6题:

    当你创建自定义的异常类时,应该从 C++ 标准库中的 exception 类继承,从而可以使用 exception 类中的 which() 函数。


    D