首页 > 继续教育
题目内容 (请给出正确答案)
[单选题]

使用catch(Exceptione)的优点是()。

A.忽略一些异常

B.指挥捕获个别类型的异常

C.捕获try语句块中产生的所有类型异常

D.执行一些程序

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“使用catch(Exceptione)的优点是()。”相关的问题
第1题
创建一个自定义的异常类,该类继承Exception类,为该类写一个构造方法,该构造方法带一个String类型的参数,写一个方法,令其打印出保存下来的String对象。再编写一个类,在main()方法中使用try catch结构创建一个MyException类的对象并抛出。在catch块中捕获该异常并打印出传递的String消息。
创建一个自定义的异常类,该类继承Exception类,为该类写一个构造方法,该构造方法带一个String类型的参数,写一个方法,令其打印出保存下来的String对象。再编写一个类,在main()方法中使用try catch结构创建一个MyException类的对象并抛出。在catch块中捕获该异常并打印出传递的String消息。

点击查看答案
第2题
If I had hurried, I ______ the plane.A.could catchB.would catchC.should catchD.would have

If I had hurried, I ______ the plane.

A.could catch

B.would catch

C.should catch

D.would have caught

点击查看答案
第3题
The police set a______ to catch the thieves.A.planB.deviceC.trapD.trick

The police set a______ to catch the thieves.

A.plan

B.device

C.trap

D.trick

点击查看答案
第4题
如果一个程序段中有多个catch,则程序会按下列哪种情况执行()。

A.找到合适的异常类型后继续执行后面的catch

B.找到每个符合条件的catch都执行一次

C.找到合适的异常类型后就不再执行后边的catch

D.对每个catch都执行一次

点击查看答案
第5题
______ about the robbery, the policemen rushed out in their cars to catch the robbers.A.Ha

______ about the robbery, the policemen rushed out in their cars to catch the robbers.

A.Having been informed

B.Having informed

C.Informing

D.Be informed

点击查看答案
第6题
A. snatchB. catch C. match D. watch

A. snatch

B. catch

C. match

D. watch

点击查看答案
第7题
She spoke fast that I could not catch a word.A.tooB.veryC.suchD.so

She spoke fast that I could not catch a word.

A.too

B.very

C.such

D.so

点击查看答案
第8题
It was so late that we_________had time to catch the train. A.nearlyB.almostC.h

It was so late that we_________had time to catch the train.

A.nearly

B.almost

C.hardly

D.simply

点击查看答案
第9题
The boy didn't catch what the teacher said because his mind ______.A.wonder offB.wondered

The boy didn't catch what the teacher said because his mind ______.

A.wonder off

B.wondered off

C.wander off

D.wandered off

点击查看答案
第10题
I tried to catch the ball but it was______my reach.A.beyondB.besidesC.in addition toD.as w

I tried to catch the ball but it was______my reach.

A.beyond

B.besides

C.in addition to

D.as well as

点击查看答案
第11题
Will you please______ it again? I don't quite catch it.A.tellB.speakC.talkD.say

Will you please______ it again? I don't quite catch it.

A.tell

B.speak

C.talk

D.say

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改