itgle.com
更多“ClicktheExhibitbutton.Given:10.11.ProductName:12.ProductPrice:13.Foragivenproductinstance,whichthreejsp:setPropertyattributesmustbeusedtoinitializeitspropertiesfromtheHTMLform?() ”相关问题
  • 第1题:

    Click the Exhibit button. Given:Which statement is true if a TestException is thrown on line 3 of class B? ()

    A.Line 33 must be called within a try block.

    B.The exception thrown by method1 in class A is not required to be caught.

    C.The method declared on line 31 must be declared to throw a RuntimeException.

    D.On line 5 of class A, the call to method2 of class B does not need to be placed in a try/catch block.


    参考答案:B

  • 第2题:

    Click the Exhibit button. Given:Which two statements are true if a NullPointerException is thrown on line 3 of class C? ()

    A.The application will crash.

    B.The code on line 29 will be executed.

    C.The code on line 5 of class A will execute.

    D.The code on line 5 of class B will execute.

    E.The exception will be propagated back to line 27.


    参考答案:B, E

  • 第3题:

    Click the Exhibit button.Given:What is the result?()

    A.Line 26 prints "a" to System.out.

    B.Line 26 prints "b" to System.out.

    C.An exception is thrown at line 26 at runtime.

    D.Compilation of class A will fail due to an error in line 6.


    参考答案:A