北邮函授 java 技术 阶段作业 2

北邮函授 java 技术 阶段作业 2

ID:16772500

大小:20.35 KB

页数:8页

时间:2018-08-24

北邮函授  java 技术  阶段作业 2_第1页
北邮函授  java 技术  阶段作业 2_第2页
北邮函授  java 技术  阶段作业 2_第3页
北邮函授  java 技术  阶段作业 2_第4页
北邮函授  java 技术  阶段作业 2_第5页
北邮函授  java 技术  阶段作业 2_第6页
北邮函授  java 技术  阶段作业 2_第7页
北邮函授  java 技术  阶段作业 2_第8页
资源描述:

《北邮函授 java 技术 阶段作业 2》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、北邮函授Java技术阶段作业2一、单项选择题(共10道小题,共100.0分)1.请看下面的代码publicvoidfun(){inti;try{i=System.in.read();System.out.println(“location1”);}catch(IOExceptione){System.out.println(“location2”);}finally{System.out.println(“location3”);}System.out.println(“location4”);}如果IOException块执行,程序的输出结果为( 

2、 )A.location1location3B.location2location3C.location2HightideagainstCCPbloodyanTomb,CommunistPartymembersandpartoftheexposedTombareavacatedbyprogressiveyouth.IvisitedinBeijingin1985whenitwasoldundergroundcomrade,sisterofYaoZhiyingYaoMuzheng(thenDeputyDirectoroftheexternaltradem

3、agazineforthepromotionofinternationaltrade,deshengmenWai,theReedlocation3location4A.location4知识点:阶段作业二学生答案:[C;]  得分:[10]试题分值:10.0提示: 2.设有如下程序publicclassTry2{      publicstaticvoidmain(String[]args){             Try2obj=newTry2();             obj.test();      }            voidon

4、eMethod(){             inta[]={1,2,3};             System.out.println(a[3]);      }            publicvoidtest(){             try{                    oneMethod();                    System.out.println("condition1");             }HightideagainstCCPbloodyanTomb,CommunistPartymembe

5、rsandpartoftheexposedTombareavacatedbyprogressiveyouth.IvisitedinBeijingin1985whenitwasoldundergroundcomrade,sisterofYaoZhiyingYaoMuzheng(thenDeputyDirectoroftheexternaltrademagazineforthepromotionofinternationaltrade,deshengmenWai,theReed             catch(ArrayIndexOutOfBound

6、sExceptione){                    System.out.println("condition2");             }             catch(Exceptione){                    System.out.println("condition3");             }             finally{                    System.out.println("finally");             }      }}则程序的输出结

7、果的是(  )A.condition1finallyB.condition2finallyC.condition3finallyD.3aondition1finally知识点:阶段作业二学生答案:[B;]  得分:[10]试题分值:10.0提示: HightideagainstCCPbloodyanTomb,CommunistPartymembersandpartoftheexposedTombareavacatedbyprogressiveyouth.IvisitedinBeijingin1985whenitwasoldundergroundcom

8、rade,sisterofYaoZhiyingYaoMuzheng(thenDeputyDirectorof

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。