人力资源JEE招聘试题

上传人:313****321 文档编号:151388107 上传时间:2022-09-13 格式:DOCX 页数:16 大小:46.30KB
收藏 版权申诉 举报 下载
人力资源JEE招聘试题_第1页
第1页 / 共16页
人力资源JEE招聘试题_第2页
第2页 / 共16页
人力资源JEE招聘试题_第3页
第3页 / 共16页
资源描述:

《人力资源JEE招聘试题》由会员分享,可在线阅读,更多相关《人力资源JEE招聘试题(16页珍藏版)》请在装配图网上搜索。

1、东南融通J2EE面试试题网龙笔试试题:1、实现现链表的的创建,删删除和逆逆序等。#inccludde#inccluddeusinng nnameespaace stdd;typeedeff sttrucct sstuint datta;struuct stuu *nnextt;nodde, lisst;nodee* ccreaatliist(intt n)nodee *hh, *p, *s;h = neww noode;h-nnextt = NULLL;p = h;coutt “ppleaase inpput ” nn ” nummberrs.”;for(intt i = 00; ii s-d

2、atta;s-nnextt = NULLL;p-nnextt = s;p = s;retuurn h;voidd deeletteliist (noode *s, innt aa)nodee *pp;whille(ss-ddataa != a)p = s;s = s-nexxt;if(ss = NUULL)coutt nnextt = s-nexxt;deleete s;voidd diispllay(nodde *h)h = h-nexxt;whille(hh != NUULL)coutt daata nexxt;coutt nexxt;q = p-nexxt;whille(qq-nnext

3、t != NUULL)s = q-nexxt;q-nnextt = p;p = q;q = s;q-nnextt = p;h-nnextt-nnextt = NULLL;h-nnextt = q;retuurn h;int maiin()int n;nodee *hh;coutt n;h= ccreaatliist(n);dispplayy(h);coutt n;deleetellistt(h, n);dispplayy(h);h = revversse(hh);dispplayy(h);retuurn 0;2、字符符串逆序序输入文件件是inn.txxt,内内容例如如如下:helllo, ev

4、eeryoone.my nnamee iss shhen, hee.ni, ne?则倒序之之后为:everryonne. helllo,he. sheen, is namme mmyne? ni,源程序,自自己实现现的,算算法是别别人的。呵呵#inccludde#inccludde#inccludde#inccludde#inccluddeusinng nnameespaace stdd;int maiin()ifsttreaam iinFiile;ofsttreaam ooutFFilee;charr *ffNamme;striing:siize_typpe bb,e;charr chh;s

5、triing linne;vecttor ssvecc;inFiile.opeen(”iin.ttxt”);whille(ggetllinee(innFille, linne) /先获取取每一行行字符,并并存入容容器中svecc.puush_bacck(llinee);inFiile.cloose();outFFilee.oppen(”ouut.ttxt”);vecttor:iteerattor iteer = svvec.beggin();whille(iiterr != svvec.endd()b = 0;e = (*iiterr).ssizee() 11;whille( b e) /将该

6、该行字符符整体翻翻转ch = (*iteer)b;(*itter)b = (*iiterr)ee;(*itter)e = ch;b+;e;b = 0;e = 0;striing:siize_typpe ii = 0;whille( (*iiterr)ii )if(*itter)i != ) /找到到一行的的一个单单词b = i;whille(*itter)i != & (*itter)i)i+;i;e = i;whille (b e) /将这个个单词翻翻转ch = (*iteer)b;(*itter)b = (*iiterr)ee;(*itter)e = ch;b+;e;i+;outFFile

7、e *iiterr enndl;+itter;retuurn 0;新大陆面面试题:(一)技技术面试试struuts如如何表现现MVCC模式的的?Tomccat的的部署?UML有有哪些图图?Struuts框框架的好好处(优优点)?答:1、是开源源软件,使使开发者者能更深深入的了了解其内内部实现现机制。 2、TTagllib是是Strrutss的标记记库,灵灵活动用用,能大大大提高高开发效效率;通通过一个个配置文文件,即即可把握握整个系系统各部部分之间间的联系系,这对对于后期期的维护护有着莫莫大的好好处。尤尤其是当当另一批批开发者者接手这这个项目目时,这这种优势势体现得得更加明明显。 4. 提供E

8、Exceeptiion处处理机制制 . 5. 数据库库链接池池管理 6. 支持II18NN Struuts+Hibbernnatee框架的的优势?答:这两两种架构构相结合合很好地地解决了了系统的的开发效效率低、不易于于维护、低耦合合及可移移植性差差等问题题.介绍一下下AJAAX?答:AJJAX(Asyynchhronnouss JaavaSScriipt andd XMML)被被赢得广广泛的认认可,其其原因是是由于它它缩短了了Webb应用程程序和桌桌面应用用程序之之间的差差距,并并在其中中充分结结合可实实现的技技术和丰丰富的用用户体验验。AJAXX是多种种技术的的综合,它它打破了了页面刷刷新的

9、范范式,使使您的用用户快速速方便的的与 WWeb 应用程程序交互互。CVS配配置与使使用?POJOO是什么么?答:简单单的Jaava对对象(PPlaiin OOld Javva OObjeectss),PPOJOO对象有有时也被被称为DDataa对象,大大量应用用于表现现现实中中的对象象。概要设计计与详细细设计等等文档的的主要包包含内容容?(二)笔笔试内容容Javaa基础:Chaar变量量.CllasssLoaaderr与Cllasss.JDDO.GGC.等等SQL方方面:SSQL全全称.查查询语句句. GGrouup bby .havvingg.uppdatte ssetJSP方方面:静静态

10、inncluude与与动态iinclludee第一部分分: JJavaa 基础础知识1.Whatt wiill happpenn whhen youu atttemmpt to commpille aand runn thhe ffolllowiing codde? publlic claass Tesst staaticc innt xx = 5; staaticc innt xx, yy; pubblicc sttatiic vvoidd maain(Strringg arrgs) x-; myyMetthodd(); Syysteem.oout.priintlln(xx + y + +x

11、); pubblicc sttatiic vvoidd myyMetthodd() y = xx+ + +x; A. ccomppileetimme eerroor B. pprinnts: 1 C. pprinnts: 2 D. pprinnts: 3 E. pprinnts: 7 F. pprinnts: 8 2.Whicch oof tthe folllowwingg coolleectiion claassees ffromm jaava.utiil ppackkagee arre TThreead saffe? (Chooosee twwo)A. VVecttor B. AArraa

12、yLiistC. HHashhMapp D. HHashhtabble 3Whicch oof thee foolloowinng ttypees iss prrimiitivve jjavaa tyype?(Chooosee twwo)A SttrinngB inntC chharD Shhortt4Whicch ttwo demmonsstraate a hass a reelattionnshiip? (Chhoosse ttwo) A. puubliic iinteerfaace Perrsonn ppubllic claass Empployyee exttendds PPersso

13、n B. pubblicc innterrfacce SShappe pubblicc innterrfacce RRecttanddle exttendds SShappe C. pubblicc innterrfacce CColoorabble puubliic cclasss SShappe iimpllemeentss Coolorrablle D. pubblicc cllasss Sppeciies pubblicc cllasss Annimaalpprivvatee Sppeciies speeciees; E. innterrfacce CCompponeent claas

14、s Conntaiinerr immpleemennts Commponnentt pprivvatee Coompoonennt chhilddrenn; 5. WWhatt iss thhe rresuult wheen yyou commpille aand runn thhe ffolllowiing codde? publlic claass ThrrowssDemmo staaticc vooid thrrowMMethhod() Syysteem.oout.priintlln(Inssidee thhrowwMetthodd.); thrrow neww IllleggalAAc

15、ceessEExceeptiion(deemo); pubblicc sttatiic vvoidd maain(Strringg arrgs) ttry thrrowMMethhod(); caatchh (IIlleegallAcccesssExccepttionn e) Sysstemm.ouut.pprinntlnn(CCaugght + e); A. ccomppilee errrorr B. rrunttimee errrorr C. ccomppilee suucceessffullly, notthinng iis pprinntedd. D. iinsiide thrrowM

16、Methhod folllowwed by cauughtt: jjavaa.laang.IlllegaalAcccesssExxcepptioon: demmo 6. Whicch ttwo staatemmentts aare truue ffor thee cllasss jaava.utiil.TTreeeSett? (Chooosee twwo) A. Thee ellemeentss inn thhe ccolllecttionn arre oordeeredd. BB. TThe colllecctioon iis gguarrantteedd too bee immmuttab

17、lle. C. Thee ellemeentss inn thhe ccolllecttionn arre gguarrantteedd too bee unniquue. D. Thee ellemeentss inn thhe ccolllecttionn arre aacceesseed uusinng aa unniquue kkey. E. Thhe eelemmentts iin tthe colllecctioon aare guaarannteeed tto bbe ssyncchroonizzed 点评:TTreeeSett类实现现了Seet接口口。Seet的特特点是其其中的

18、元元素惟一一,选项项C正确确。由于于采用了了树形存存储方式式,将元元素有序序地组织织起来,所所以选项项A也正正确。7. WWhatt wiill be priinteed wwhenn yoou eexeccutee thhe ffolllowiing codde? classs XX Y b = nnew Y(); X() Systtem.outt.prrintt(XX); classs YY Y() Systtem.outt.prrintt(YY); publlic claass Z eexteendss X Y y = nnew Y(); Z() Systtem.outt.prrintt

19、(ZZ); publlic staaticc vooid maiin(SStriing aargss) new Z(); A. ZZ B. YYZ C. XXYZ D. YYXYZZ 8.whhichh twwo ddecllareetioons preevennt tthe oveerriidinng oof aa meethood? A. ffinaal vvoidd meethooda() B. vvoidd fiinall meethooda() C. sstattic voiid mmethhodaa() D. sstattic finnal voiid mmethhodaa() E

20、. ffinaal aabsttracct vvoidd meethooda() 9. YYou wannt aa cllasss too haave acccesss too meembeers of anootheer cclasss iin tthe samme ppackkagee whhichh iss thhe mmostt reestrricttivee acccesss mmodiifieer tthatt wiill acccompplissh tthiss obbjecctivve? A. ppubllic B. pprivvatee C. pprottectted D.

21、ttrannsieent E. NNo aaccesss moodiffierr iss reequiiredd 10.wwhicch ttwo intterffacees pprovvidee thhe ccapaabillityy too sttoree obbjeccts usiing a kkey-vallue paiir? A. jjavaa.uttil.Mapp B. jjavaa.uttil.Sett C. jjavaa.uttil.Lisst D. jjavaa.uttil.SorrteddSett E. jjavaa.uttil.SorrteddMapp F. jjavaa.

22、uttil.Colllecctioon 11.1) cclasss SSupeer 2) ppubllic flooat gettNumm()retturnn 3.0f; 3) 4) 5) ppubllic claass Subb exxtennds Supper 6) 7) whicch mmethhod, pllaceed aat llinee 6, wiill cauuse a ccomppileer eerroor? A. ppubllic flooat gettNumm()retturnn 4.0f; B. ppubllic voiid ggetNNum() C. ppubllic

23、voiid ggetNNum(douublee d) D. ppubllic douublee geetNuum(ffloaat dd)rretuurn 4.00d; 注意这道道题主要要考的是是方法的的oveerlooad和和oveerriide。对于ooverrloaad,只只有参数数列表不不同,才才做为标标准,而而返回值值和访问问控制关关键字不不能做为为标准,所所以B错错在方法法名相同同,但只只有返回回值不同同,这是是错的。C和DD是正确确的ovverlloadd。对于于oveerriide,则则访问控控制关键键字只能能更加公公有化,异异常只能能是超类类方法抛抛出的异异常的子子类,也也可以

24、不不抛出。返回类类型,参参数列表表必须精精确匹配配。所以以A是正正确的ooverrridde。12.whicch ggetss thhe nnamee off thhe ppareent dirrecttoryy off fiile fiile.txtt? A. SStriing namme=FFilee.geetPaarenntNaame(fiile.txtt); B. SStriing namme=(neww Fiile(fiile.txtt).geetPaarennt(); C.Sttrinngnaame=(neew FFilee(ffilee.txxt).ggetPPareentNNa

25、mee(); D.Sttrinngnaame=(neew FFilee(ffilee.txxt).ggetPPareentFFilee(); E.Diirettoryydirr=(nnew Filee(ffilee.txxt).ggetPPareentDDir(); Striing namme=ddir.gettNamme(); 13Whatt haappeens wheen yyou tryy too coompiile andd ruun tthe folllowwingg apppliicattionn? CChooose alll coorreect opttionns. 1. pub

26、blicc cllasss Z 22. ppubllic staaticc vooid maiin(SStriing aargss) 3. neew ZZ(); 4. 5. 6. Z() 7. Z aaliaas1 = tthiss; 88. ZZ alliass2 = thhis; 9. syynchhronnizeed(aaliaas1) 10. trry 111. aaliaas2.waiit(); 112. Sysstemm.ouut.pprinntlnn(“DDONEE WAAITIING”); 113. 114. cattch (InnterrruppteddExccepttion

27、n e) 15. Syysteem.oout.priintlln(“IINTEERR UPTTED”); 116. 117. cattch (Exxcepptioon ee) 188. SSysttem.outt.prrinttln(“OTTHERR EXXCEPPTIOON”); 119. 220. finnallly 211. SSysttem.outt.prrinttln (“FFINAALLYY”); 222. 233. 244. SSysttem.outt.prrinttln(“ALLL DDONEE”); 255. 266. A. Thhe aappllicaatioon ccom

28、ppilees bbut doeesnt pprinnt aanytthinng. B. Thee apppliicattionn coompiiless annd pprinnt “DDONEE WAAITIING” C. Thee apppliicattionn coompiiless annd pprinnt “FFINAALLYY” DD. TThe apppliccatiion commpilles andd prrintt “AALL DONNE” E. Thee apppliicattionn coompiiless annd pprinnt “IINTEERRUUPTEED”

29、点评:在在Javva中,每每一个对对象都有有锁。任任何时候候,该锁锁都至多多由一个个线程控控制。由由于alliass1与aaliaas2指指向同一一对象ZZ,在执执行第111行前前,线程程拥有对对象Z的的锁。在在执行完完第111行以后后,该线线程释放放了对象象Z的锁锁,进入入等待池池。但此此后没有有线程调调用对象象Z的nnotiify()和nnotiifyAAll()方法法,所以以该进程程一直处处于等待待状态,没没有输出出。14. Whaat rresuultss frrom atttempptinng tto ccomppilee annd rrun thee foolloowinng cc

30、odee? ppubllic claass Terrnarry pubblicc sttatiic vvoidd maain(Strringg arrgs) innt aa = 5; Sysstemm.ouut.pprinntlnn(VValuue iis - + (a 55) ? 9.9 : 9); A. priint:Vallue is -9 B. priint:Vallue is -5 C. Commpillatiion errror D. Nonne oof tthesse第二部分分: JJSP &Seervllet 15. Whicch iis tthe corrrecctcoode

31、 seggmennt?A B C D 16.wwhicch ccodee seegmeentmmakee thhe sservvlett ennginne uuse thee siinglleThhreaadMoodellintterffacee?A. B. C. D. 17.在在serrvleet和EJBB之间传递递的vaalueeObjjectt对象类类要继承承什么接接口Seriialiizabble18. 我们在在webb应用开开发过程程中经常常遇到输输出某种种编码的的字符,如如isoo-88859-1等,如如何用ggetBBytees输出出一个某某种编码码的字符符串?(1)请请写出使使

32、用geetByytess方法进进行编码码转换的的代码(一一句示例例即可)strvvaluue.ggetBBytees(ISOO88559_11)(2)在在处理sservvlett的中文文问题时时,除上上面的方方法外,是是否有别别的常用用办法requuestt.seetChharaacteerEnncoddingg(GGB23312);,19. EJBB分为几几种哪三三种EJJB,其其中的两两种又可可各细分分成另外外两种,写写出7种种分类Sesssionn Beean,Enttityy Beean,MesssaggeDrriveen BBeannSesssionn beean: Sttateef

33、ull seessiion beaan, Staatellesss seessiion beaanEntiity Beaan: Beaan-MManaagedd Peersiisteencee Coontaaineer-MManaagedd Peersiisteencee20. 简述fforwwardd 和rrediirecct的区区别第三部分分: 系系统设计计 21. UMML中,通通常意义义上的静静态图,交互图图 分别别包含下下列哪些些图(多多选)A 用例例图B 类图图C 对象象图D 行为为图E 顺序序图F 合作作图G 实现现图H 包图图静态图(ABC)交互图(DEFG)22.写写一种单单体类(Sinngleetonn)实现现实例23写写一种FFacttoryy的实现现实例。保密16/16

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!