1 / 13
文档名称:

java工程师考试.doc

格式:doc   大小:25KB   页数:13页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

java工程师考试.doc

上传人:459972402 2019/8/10 文件大小:25 KB

下载得到文件列表

java工程师考试.doc

文档介绍

文档介绍:第一题:(过程可以写在后面)学校的毕业话剧演出由四个小美女来出演小红帽、美羊羊、女巫和公主的角色。没人在排练时的角色与演出时的角色不同。排练时出演小红帽的人会撒谎,通过如下消息,请判断四人在演出和排练时分别出演什么角色。梅:“排练时,兰的角色是演出时竹的角色。”兰:“菊排练时扮演的是美羊羊。”竹:“演出时我演公主。”菊:“兰演出时扮演的是美羊羊。”第二题:解数独题(数独是九宫格(即3格宽x3格高))正方形状,每一格又细分为一个九宫格,在没一个小九宫格中,分别填上1~9个数字,让每一个大九宫格没一列,没一行的数字都不重复。8174694833852756966511831、Whichlinecontainsaconstructorinthisclassdefinition?lassCounter{//(1)intcurrent,step;ounter(intstartVaue,intstepValue){//(2)set(startValue);setStepValue(steValue);}publicintget(){returncurrent;}//(3)publicvoidset(intvalue){current==value;}//(4)publicvoidsetStepValue(intstepValue){step==stepValue;}//(5)}1)Codemarkedwith(1)isaconstructor2)Codemarkedwith(2)isaconstructor3)Codemarkedwith(3)isaconstructor4)Codemarkedwith(4)isaconstructor5)Codemarkedwith(5)isaconstructor2、Aninstancemember...1)isalsocalledastaticmember2)isalwaysavariable3)isneveramethod4)belongstoasingleinstance,nottotheclassasawhole5)alwaysrepresentsanoperation3、Giventhefollowingclass,pilation?lassQ6db8{inta;intb=0;staticintc;publicvoidm(){intd;inte=0;//Position1}}1)a++2)b++3)c++4)d++5)e++Whatiswrongwiththefollowingcode?ClassMyExceptionextendsException{}lassqb4ab{Publicvoidfoo(){Try{Bar();}finally{Baz();}catch(MyExceptione){}Publicvoidbar()throwsMyException{ThrownewException();}Publicvoidbaz()throwsRuntimeException{ThrownewRuntimeException();}})Sincethemethodfoo()doesnotcatchtheexceptiongeneratedbythemethodbaz(),itmustdeclaretheRuntimeExceptioninitsthrowsclause.)Athetryblockcannotbefollowedbybothacatchandafinallyblock.)Anemptycatchblockisnotallowed.)Acatchblockcannotfollowafinallyblock.)、pileandrunthefollowingprogrambypassingtheTestclasstotheJavainterpreter?ClassTest{Publicstaticvoidmain{(“hello”);}}()())))pilesanddispla

最近更新

2024年电工证《低压电工实操》考试题库(历年.. 28页

2024年苏教版六年级下册数学期末测试卷及答案.. 6页

2024年西师大版六年级下册数学期末测试卷含答.. 5页

2024年食品安全法管理知识试题库附参考答案【.. 22页

交管12123学法减分复习题库【预热题】 90页

人教版五年级下册数学期中测试卷及答案(各地.. 6页

人教版六年级下册数学期末测试卷及完整答案(.. 6页

人教版六年级下册数学第一单元《负数》测试卷.. 6页

邮政营业员个人年终工作总结格式1500字2篇 4页

人教版四年级下册数学期中测试卷【网校专用】.. 7页

六年级下册数学 圆柱与圆锥 测试题【全优】 7页

冀教版六年级下册数学第三单元 正比例、反比例.. 7页

北京版六年级下册数学第二单元 比和比例 测试.. 7页

小升初六年级下册数学期末测试卷含答案【轻巧.. 6页

小升初数学应用题大全带答案(b卷) 15页

小升初数学期末模拟测试卷精品【全国通用】 7页

小升初数学期末测试卷精品(夺分金卷) 8页

小学六年级下册数学 圆柱与圆锥 测试题附参考.. 9页

小学六年级下册数学《圆柱与圆锥》专项练习附.. 7页

小学六年级下册数学期末测试卷(全国通用) 7页

小学四年级上册道德与法治期末测试卷ab卷 8页

教科版一年级下册科学期末测试卷【最新】 7页

教科版三年级上册科学期末测试卷【考点精练】.. 6页

教科版三年级下册科学期末测试卷及参考答案【.. 7页

教科版二年级上册科学期末测试卷及参考答案(.. 7页

教科版二年级下册科学期末测试卷及参考答案(.. 6页

教科版五年级上册科学期末测试卷及答案【历年.. 7页

教科版四年级下册科学期末测试卷含答案【能力.. 7页

教科版小学四年级下册科学期末测试卷含答案(.. 8页

范卿平人教版初三化学讲义全集 295页