84. try {  85. ResourceConnection con = resourceFactory.getConnection();  86. Results r = con.query(”GET INFO FROM CUSTOMER”);  87. info = r.getData();  88. con.close();  89. } catch (ResourceException re) {  90. errorLog.write(re.getMessage());  91. } 

题目

84. try {  85. ResourceConnection con = resourceFactory.getConnection();  86. Results r = con.query(”GET INFO FROM CUSTOMER”);  87. info = r.getData();  88. con.close();  89. } catch (ResourceException re) {  90. errorLog.write(re.getMessage());  91. }  92. return info;  Which is true if a ResourceException is thrown on line 86?() 

  • A、 Line 92 will not execute.
  • B、 The connection will not be retrieved in line 85.
  • C、 The resource connection will not be closed on line 88.
  • D、 The enclosing method will throw an exception to its caller.

相似考题
更多“84. try {  85.&e”相关问题
  • 第1题:

    them alone for some time before reading again, will help a 84.


    正确答案:
     84. which

  • 第2题:

    “I usually go to work by bus.”“Why notby bike for a change?”()

    A. trying to go

    B. try going

    C. to try going

    D. try go


    参考答案:B

  • 第3题:

    设有结构体类型定义: struct try { int one; float two; }*str;若要动态开辟一个结构单元,使指针str指向其首地址,正确的语句是______。

    A.str=(try*)malloc(sizeof(try));

    B.*str=(struct try*)malloc(sizeof(struct try));

    C.str=(strucy try*)malloc(sizeof(struct try));

    D.str=(struc try)malloc(sizeof(struct try));


    正确答案:C
    解析:由于在ANSIC中malloc函数返回的地址为void,故在调用函数时,必须利用强制类型转换将其转换成所需的类型。

  • 第4题:

    some advices, In a word, friends are those you like and 84. ____________


    正确答案:
    advice

  • 第5题:

    2002 -84.蒲黄的药用部位是
    A.块根 B.全草 C.花粉 D.果实 E.种子


    答案:C
    解析:
    C。天花粉的药用部位是块根,蒲黄的药用部位是花粉。

  • 第6题:

    She’s going to () that new dress.

    • A、try out
    • B、try on
    • C、try for

    正确答案:B

  • 第7题:

    在Java中,下面描述正确的是()。    

    • A、try块中可以有嵌套try块
    • B、try块后最多可以跟随3个catch块
    • C、try块可以单独存在

    正确答案:A

  • 第8题:

    下面关于try块的说法正确的是()

    • A、try块后至少应有一个catch块
    • B、try块后必须有finally块
    • C、可能抛出异常的方法应放在try块中
    • D、对抛出的异常的处理应放在try块中

    正确答案:C

  • 第9题:

    在C#语言中,下列异常处理结构中有错误的是()。

    • A、catch{}finally{}
    • B、try{}finally{}
    • C、try{}catch{}finally{}
    • D、try{}catch{}

    正确答案:A

  • 第10题:

    下面关于try、catch和finally语句块的组合使用,正确的是()

    • A、try{,}
    • B、try{,}finally{,}
    • C、try{,}catch{,}finally{,}
    • D、try{,}catch{,}catch{,}

    正确答案:B,C,D

  • 第11题:

    单选题
    A large supply of spare parts is very expensive, so a company ______.
    A

    will try to keep as many as it can

    B

    will try to keep as low as it can

    C

    will try to make them all by itself

    D

    will try to deliver it quickly


    正确答案: D
    解析:
    文章第二段首句指出“A large supply of spare parts is very expensive, so a company will try to keep its inventory as low as it can…”,由此可知,由于大量零部件的储存成本很高,所以企业尽可能使库存降低,对应选项B。

  • 第12题:

    单选题
    84. try {  85. ResourceConnection con = resourceFactory.getConnection();  86. Results r = con.query(”GET INFO FROM CUSTOMER”);  87. info = r.getData();  88. con.close();  89. } catch (ResourceException re) {  90. errorLog.write(re.getMessage());  91. }  92. return info;  Which is true if a ResourceException is thrown on line 86?()
    A

     Line 92 will not execute.

    B

     The connection will not be retrieved in line 85.

    C

     The resource connection will not be closed on line 88.

    D

     The enclosing method will throw an exception to its caller.


    正确答案: D
    解析: 暂无解析

  • 第13题:

    Encourage your children to try new things, but try not to _________ them too hard.

    A.draw

    B.strike

    C.rush

    D.push


    正确答案:D

  • 第14题:

    Assumethecustomtagmy:errorPronealwaysthrowsajava.lang.RuntimeExceptionwiththemessage"Filenotfound."AnerrorpagehasbeenconfiguredforthisJSPpage.Whichoptionpreventstheexceptionthrownbymy:errorPronefrominvokingtheerrorpagemechanism,andoutputsthemessage"Filenotfound"intheresponse?()

    A.<c:trycatch="ex"><my:errorProne/></c:try>${ex.message}

    B.<c:catchvar="ex"><my:errorProne/></c:catch>${ex.message}

    C.<c:try>.<my:errorProne/>.</c:try>.<c:catchvar="ex"/>.${ex.message}

    D.<c:try>.<my:errorProne/>.<c:catchvar="ex"/>.${ex.message}.</c:try>


    参考答案:B

  • 第15题:

    以下对于try…catch语句描述正确的是()

    A.try…catch语句处理程序中的错误

    B.try...catch语句处理程序中的bug

    C.try...catch语句处理程序中的异常

    D.以上说法都不正确


    答案:C
    解析:try...catch语句处理程序中的异常

  • 第16题:

    84.不熟悉风动工具使用方法人员,不准擅自使用风动工具。


    答案:对
    解析:
    (见《变电安规》16.4.5.1)

  • 第17题:

    __I cannot keep up with my classmates.

    A.How I try hard
    B.Whatever hard I try
    C.No matter how I try hard
    D.No matter how hard I try

    答案:D
    解析:
    no matter how=however,表示“无论如何”。

  • 第18题:

    在java中,惯用语捕获错误的语法try-catch-finally的下列描述正确的是() 

    • A、try-catch必须配对使用
    • B、try可以单独使用
    • C、try-finally可以配对使用
    • D、在try-catch后如果定义了finally,则finally肯定会执行

    正确答案:C,D

  • 第19题:

    在Java中,关于捕获错误的语法try  -  catch -  finally的说法正确的是()     

    • A、try – catch 必须配对使用
    • B、try 可以单独使用
    • C、try – finally 可以配对使用
    • D、在 tru – catch 后如果定义了finally肯定会执行

    正确答案:C,D

  • 第20题:

    84.系统误差的正负、大小一定,是向性的,主要来源有()、()、()。


    正确答案:单;方法误差;仪器和试剂误差;操作误差

  • 第21题:

    在C#程序中〃下列用来处理异常的结构〃错误的是()。

    • A、catch{}finally{}
    • B、try{}finally{}
    • C、try{}catch{}finally{}
    • D、try{}catch{}

    正确答案:A

  • 第22题:

    不定项题
    84.该债券属于(   )
    A

    折价发行债券

    B

    溢价发行债券

    C

    零息债券

    D

    付息债券


    正确答案: A,D
    解析:

  • 第23题:

    单选题
    A large supply of spare parts is very expensive, so a company
    A

    will try to keep as many as it can.

    B

    will try to keep as low as it can.

    C

    will try to make them all by itself.

    D

    will try to deliver it quickly.


    正确答案: A
    解析:
    文中的的第二段提到“A large supply of spare parts is very expensive, so a company will try to keep its inventory as low as it can…”,由此可知答案选B。