//somecodehere32.try{33.//somecodehere34.}catch(SomeExceptionse){35.//somecodehere36.}finally{37.//somecodehere38.}Underwhichthreecircumstanceswillthecodeonline37beexecuted?()A.Theinstancegetsgarbagecollected.B.Thecodeonline33throwsanexception.C.Thecodeon

题目
//somecodehere32.try{33.//somecodehere34.}catch(SomeExceptionse){35.//somecodehere36.}finally{37.//somecodehere38.}Underwhichthreecircumstanceswillthecodeonline37beexecuted?()

A.Theinstancegetsgarbagecollected.

B.Thecodeonline33throwsanexception.

C.Thecodeonline35throwsanexception.

D.Thecodeonline31throwsanexception.

E.Thecodeonline33executessuccessfully.


相似考题
更多“//somecodehere32.try{33.//somecodehere34.}catch(SomeExceptionse){35.//somecodehere36.}finally{37.//somecodehere38.}Underwhichthreecircumstanceswillthecodeonline37beexecuted?() ”相关问题
  • 第1题:

    4、以下异常处理结构中,错误的是()

    A.catch{} finally{}

    B.try{} finally{}

    C.try{} catch{} finally{}

    D.try{} catch{}


    B

  • 第2题:

    关于异常处理try语句语法描述正确的是()。

    A.try块是必须的,catch块和finally块至少存在一个。

    B.try语句中catch块和finally块顺序可以任意。

    C.try语句中,catch块和finally块存在的个数可以任意。

    D.catch块和finally块都是可选的成分。


    try块是必须的,catch块和finally块至少存在一个。

  • 第3题:

    2、Java中,下面捕获异常的语句不正确的是()。

    A.try{……} finally{……}

    B.try{……} catch(Exception ex){……}

    C.try{ try{……} } catch(Exception ex){……}

    D.try{ try{……} finally{……} } catch(Exception ex){……}


    C

  • 第4题:

    以下异常处理结构中,错误的是()

    A.catch{} finally{}

    B.try{} finally{}

    C.try{} catch{} finally{}

    D.try{} catch{}


    catch {} finally{}

  • 第5题:

    以下叙述那个正确?

    A.一个try 块可跟任意个finally块.

    B.每个try 块必须至少跟一个catch块.

    C.一个try块必须至少跟一个finally 或 catch块.

    D.如果catch 和 finally块均有,则catch 必须先于finally.


    对抛出的异常的处理应放在 try 块中