




如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
搜狐公司_JAVA高级工程师笔试题及答案[推荐五篇] 第一篇:搜狐公司_JAVA高级工程师笔试题及答案1:Aclassdesignrequiresthatamembervariableshouldbeaccessibleonlybysamepackage,whichmodiferwordshouldbeused?AA.protectedB.publicC.nomodiferD.private2:Whatwillhappenwhenyouattempttocompileandrunthefollowingcode?BpublicclassStatic{static{intx=5;}staticintx,y;publicstaticvoidmain(Stringargs[]){x--;myMethod();System.out.println(x+y+++x);}publicstaticvoidmyMethod(){y=x+++++x;}}Choices:A.prints:2B.prints:3C.prints:7D.prints:83:Whatwillbetheresultofexecutingthefollowingcode?publicstaticvoidmain(Stringargs[]){chardigit='a';for(inti=0;i{switch(digit){case'x':{intj=0;System.out.println(j);}default:{intj=100;System.out.println(j);}}}inti=j;System.out.println(i);}Choices:A.100willbeprinted11times.B.Thecodewillnotcompilebecausethevariableicannotbedeclaredtwicewithinthemain()method.C.Thecodewillnotcompilebecausethevariablejcannotbedeclaredtwicewithintheswitchstatement.D.Noneofthese.4:WhichfragmentsarenotcorrectinJavasourcefile?A.packagetestpackage;publicclassTest{//dosomething...}B.importjava.io.*;packagetestpackage;publicclassTest{//dosomething...}C.importjava.io.*;classPerson{//dosomething...}publicclassTest{//dosomething...}D.importjava.io.*;importjava.awt.*;publicclassTest{//dosomething...}5:下述程序代码中有语法错误的行是()。inti,ia[10],ib[10];/*第一行*/for(i=0;i/*第2行*/ia[i]=0;/*第3行*/ib=ia;/*第4行*/A.第1行B.第2行C.第3行D.第4行6:Whichofthefollowingstatementsaretrue?A.TheautomaticgarbagecollectionoftheJVMpreventsprogramsfromeverrunningoutofmemoryB.AprogramcansuggestthatgarbagecollectionbeperformedandforceitC.GarbagecollectionisplatformindependentD.Anobjectbecomeseligibleforgarbagecollectionwhenallreferencesdenotingitaresettonull.7:SelectvalididentifierofJava:A.%passwdB.3d_gameC.$chargeD.this8:Math.round(-11.5)等於多少?A.-11B.-12C.-11.5D.none9:Whatresultsfromattemptingtocompileandrunthefollowingcode?publicclassTernary{publicstaticvoidmain(Stringargs[]){inta=5;System.out.println(“Valueis9B.CompilationerrorC.prints:Valueis-5D.Noneofthese10:Whichisthemain()methodre

秋花****姐姐
实名认证
内容提供者


最近下载
一种基于双轨缆道的牵引式雷达波在线测流系统.pdf
一种基于双轨缆道的牵引式雷达波在线测流系统.pdf
一种胃肠道超声检查助显剂及其制备方法.pdf
201651206021+莫武林+浅析在互联网时代下酒店的营销策略——以湛江民大喜来登酒店为例.doc
201651206021+莫武林+浅析在互联网时代下酒店的营销策略——以湛江民大喜来登酒店为例.doc
用于空间热电转换的耐高温涡轮发电机转子及其装配方法.pdf
用于空间热电转换的耐高温涡轮发电机转子及其装配方法.pdf
用于空间热电转换的耐高温涡轮发电机转子及其装配方法.pdf
用于空间热电转换的耐高温涡轮发电机转子及其装配方法.pdf
用于空间热电转换的耐高温涡轮发电机转子及其装配方法.pdf