单选题

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

ALine 33 must be called within a try block.

BThe exception thrown by method 1 in class A is not required to be caught.

CThe method declared on line 31 must be declared to throw a runtime exception.

DOn line 5 of class A,the call to method 2 of class B does not need to be placed in a try catch block.

正确答案

来源:www.examk.com

答案解析

相似试题
  • Click the Exhibit button.   What is the result?()

    单选题查看答案

  • Click the Exhibit button. What is the result?()

    单选题查看答案

  • Click the Exhibit button. What is the result?()

    单选题查看答案

  • Click the Exhibit button. What is the result?()

    单选题查看答案

  • Click the Exhibit button. What is the result?()

    单选题查看答案

  • Click the Exhibit button. What is the result?()

    单选题查看答案

  • Click the Exhibit button. What is the result?()

    单选题查看答案

  • Click the Exhibit button. What is the result?()

    单选题查看答案

  • Click the Exhibit button. What is the output of the program shown in the exhibit?()

    单选题查看答案

  • Click the Exhibit button. What is the output if the main() method is run?()

    单选题查看答案