金蝶中间件2011校招笔试题.doc

金蝶中间件2011校招笔试题.doc

ID:50896934

大小:43.70 KB

页数:14页

时间:2020-03-15

金蝶中间件2011校招笔试题.doc_第1页
金蝶中间件2011校招笔试题.doc_第2页
金蝶中间件2011校招笔试题.doc_第3页
金蝶中间件2011校招笔试题.doc_第4页
金蝶中间件2011校招笔试题.doc_第5页
资源描述:

《金蝶中间件2011校招笔试题.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、一、单选题(18分,每小题个2分)1.关于软件测试的目的,下面观点错误的是()A、未来发现错误而执行程序的过程B、一个好的测试用例能够发现至今尚未发现的错误C、证明程序是正确、没有错误的D、一个成功的测试用例是发现了至今尚未发现的错误的测试2.Given:Integeri=newInteger(42);Longl=newLong(42);Doubled=newDouble(42.0);WhichexpressionevaluatestoTrue?A.(i==l)B.(i==d)C.(d==1)D.(i.equals(d))E.(d.equals(l))F.(i.equals

2、(l))G.(l.equals(42L))3.Whathappenswhenyoutrytocompileandrunthefollowingapplication?ChooseallCorrectoptions.1.publicclassZ{2.publicstaticvoidmain(String[]args){3.newZ();4.}5.6.Z(){7.Zalias1=this;8.Zalias2=this;9.synchronized(alias1){10.try{11.alias2.wait();12.System.out.println("DONEWAITING

3、");13.}14.catch(InterruptedExceptione){15.System.out.println("INTERRUPTED");16.}17.catch(Exceptione){18.System.out.println("OTHEREXCEPTION");19.}20.finally{21.System.out.println("FINALLY");22.}23.}24.System.out.println("ALLDONE");25.}26.}A.Theapplicationcompilesandprints“DONEWAITING”B.Thea

4、pplicationcompilesbutdoesn’tprintanythingC.Theapplicationcompilesandprint“FINALLY”D.Theapplicationcompilesandprint“ALLDONE”E.Theapplicationcompilesandprint“INTERRUPTED”F.Theapplicationcompilesandprint“DONEWAITING”and“FINALLY”4.Considerthefollowingclasses:1.classPerson{2.publicvoidprintValu

5、e(inti,intj){/*.....*/}3.publicvoidprintValue(inti){/*....*/}4.}5.publicclassTeacherextendsPerson{6.publicvoidprintValue(){/*...*/}7.publicvoidprintValue(inti){/*...*/}8.publicvoidprintValue(Stringi){/*...*/}9.publicstaticvoidmain(Stringargs[]){10.Persont=newTeacher();11.charch='y';12.t.pr

6、intValue(ch);13.}14.}Whichofthestatementsbelowistrue?A.Line7willnotcompile,becausevoidmethodscannotbeoverriddenB.Line12willnotcompile,becausethereisnoversionofprintValue()thattakesacharargumentC.Thecodewillcompilebutwillthrowanexceptionatline12atruntimeD.Thestatementonline12willinvoketheme

7、thodonline8E.Thestatementonline12willinvokethemethodonline2F.Thestatementonline12willinvokethemethodonline3G.Thestatementonline12willinvokethemethodonline75.Considerthefollowingstatement,chooseallcorrectoptionsYouaregivenaclasshierarchywithaninstanceoftheClass

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

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

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