【单选题】【消耗次数:1】
在try-catch-finally语句块中,以下可以单独与finally一起使用的是( )
catch
try
throws
throw
参考答案:
复制
纠错
相关题目
【判断题】 2.使用try-catch-finally语句只能捕获一个异常。( )
①  正确
②  错误
【判断题】 3.try-catch语句不可以嵌套使用。( )
①  正确
②  错误
【判断题】 1.捕获异常try语句后面通常跟有一个或多个catch()方法用来处理try块内生成的异常事件。( )
①  正确
②  错误
【单选题】 对应 try 和 catch 子句的排列方式,下列哪一项是正确的?( )
①  子类异常在前,父类异常在后
②  父类异常在前,子类异常在后
③  只能有子类异常
④  父类和子类不能同时出现在 try 语句块中
【单选题】 下列程序执行的结果是( ) 。 public class X7_1_6 { public static void main(String[] args) { try{ return; } finally{ System.out.println(Finally); } } }
①  程序正常运行,但不输出任何结果
②  程序正常运行,并输出 Finally
③  编译通过,但运行时出现异常
④  因为没有 catch 子句,因此不能通过编译
【判断题】 在异常处理中,若try中的代码可能产生多种异常则可以对应多个catch语句,若catch中的参数类型有父类子类关系,此时应该将父类放在后面,子类放在前面。
①  正确
②  错误
【单选题】 getCustomerInfo()方法如下,try中可以捕获三种类型的异常,如果在该方法运行中产生了一个IOException,将会输出什么结果( ) public void getCustomerInfo() { try { // do something that may cause an Exception } catch (java.io.FileNotFoundException ex){ System.out.print(FileNotFoundException!); } catch (java.io.IOException ex){ System.out.print(IOException!); } catch (java.lang.Exception ex){ System.out.print(Exception!); } }
①  IOException!
②  IOException!Exception!
③  FileNotFoundException!IOException!
④  FileNotFoundException!IOException!Exception!
【单选题】 That was a good idea and the government finally_________ it.
①  delivered
②  sold
③  bought
④  accepted
【单选题】 _____ that we couldn’ t catch up with him.
①  So fast he ran
②  So fast did he run
③  So fast ran he
④  Such fast did he run
【单选题】 The suggestion they all objected to __________ very effective finally.
①  proved
②  proving
③  prove
④  to prove
随机题目
【单选题】 在商品价格一定的情况下,流通中货币速度越快,所需要的货币将( )。
①  增加
②  无关
③  没有变化 ??
④  减少
【单选题】 超额准备金率的变动主要取决于( )的经营决策。
①  企业
②  商业银行
③  中央银行
④  社会公众
【单选题】 央行购入证券时回笼了货币,而抛出证券时,则投放了等值的通货。这一命题( )。
① 
② 
【判断题】 撰写英语演讲词时应避讳使用别人不熟悉的技术术语
①  正确
②  错误
【判断题】 英语演讲词的语言特征之一是:多用实词、短句,少用结构复杂的长句。
①  正确
②  错误
【判断题】 撰写英语演讲词可以多运用夸张的词语以引起观众的关注
①  正确
②  错误
【判断题】 演讲词的基本组成部分有: 开场时对听众的称呼语、提出论题、论证、结论。
①  正确
②  错误
【判断题】 演讲词的基本特征包括:口语性(有声性)、鼓动性和临场性。
①  正确
②  错误
【单选题】 The party had to be ______ because the host went down with a bad case of flu.
①  called in
②  called off
③  called on
④  called up
【单选题】 She soon _______ the actor who had starred in the popular movie Speed.
①  specified
②  realized
③  justified
④  identified