易搜题 > 资格证大类 > 计算机编程 > 问题详情
问题详情

public class ExceptionTest {  class TestException extends Exception {}  public void runTest () throws TestException {}  public void test () /* Point X*/  {  runTest ();  }  }   At point X on line 4, which code can be added to make the code compile?()

A、 Throws Exception.

B、 Catch (Exception e).

C、 Throws RuntimeException.

D、 Catch (TestException e).

E、 No code is necessary.

未找到的试题在搜索页框底部可快速提交,在会员中心"提交的题"查看可解决状态。 收藏该题
查看答案

相关问题推荐

  • Company.com is adding a new I/O drawer to an existing p5-570 with four LPARs and wants to re-balance the network cards in the I/O drawers. What is the best way to accomplish this?()

    A、Add the devices as virtual adapters to a VIO server first,then add the I/O drawer and create the shared ethernet adapters

    B、Power down the partitions,run the diag a command when the system is brought back up and reconfigure the network cards

    C、Use the rmdev command to remove the devices,shut down the partitions and move the cads,then run the cfgmgr command after reboot

    D、Detach the network cards,run rmdev on the devices and then dynamically reassign theadapters to the partitions and reconfigure

  • 由核心家庭及其较近的亲戚组成,如叔叔、姑姑、姨妈等,属于()

    A、核心家庭

    B、主干家庭

    C、联合家庭

    D、兄弟姐妹组成的家庭

    E、同性恋家庭

  • 采用碎片丢弃交换模式的交换机开始转发数据帧时已经接收到的帧长度是(  )。

    A、14字节

    B、64字节

    C、1518字节

    D、128字节

  • Which two statements about MPLS label-switched paths (LSPs) are true? ()

    A

    LSPs are bidirectional.

    B

    LSPs are unidirectional.

    C

    LSPs must follow the IGP's shortest path.

    D

    LSPs can follow paths other than the IGP's shortest path.

  • A technician receives a new printer for repair and the work order states that when powered on theprinter makes a loud noise and will not print. Which of the following actions should the technician take? ()

    A、Install new drivers on the computer.

    B、Install a new ink cartridge.

    C、Install a print head on the printer.

    D、Remove the packing tape from the print head.

联系客服 会员中心
TOP