- 1、本文档共10页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
北京宇信易诚科技有限公司招聘JAVA笔试真题及答案
选择题
1:鉴于Java的特点,它最适合的计算环境是b
A.并行计算环境
B.分布式计算环境
C.高强度计算环境
D.开放式计算环境
2:Whichmethodyoudefineasthestartingpointofnewthreadinaclassfromwhichnewthethread
canbeexcution?b
A.publicvoidstart()
B.publicvoidrun()
C.publicvoidrunnable()
D.publicstaticvoidmain(Stringargs[])
3:Whichstatementaboutlisteneristrue?A什么是Listener
A.Mostcomponentallowmultiplelistenerstobeadded.
B.Ifmultiplelistenerbeaddtoasinglecomponent,theeventonlyaffectedonelistener.
C.Componentdon?tallowmultiplelistenerstobeadd.
D.none
4:软件生命周期的瀑布模型把软件项目分为3个阶段、8个子阶段,以下哪一个是正常的开发顺序?a
A.计划阶段、开发阶段、运行阶段
B.设计阶段、开发阶段、编码阶段
C.设计阶段、编码阶段、维护阶段
D.计划阶段、编码阶段、测试阶段
5:b
1.Whatwillbeprintedwhenyouexecutethefollowingcode?
2.
3.classX
4.{
5.YbnewY();
6.X()
7.{
8.System.out.print(X);
9.}
10.}
11.
12.classY
13.{
14.Y()
15.{
16.System.out.print(Y);
1/10
17.}
18.}
19.
20.publicclassZextendsX
21.{
22.YynewY();
23.Z()
24.{
25.System.out.print(Z);
26.}
27.publicstaticvoidmain(String[]args)
28.{
29.newZ();
30.}
31.}
32.
33.Choices:
A.Z
B.YZ
C.XYZ
D.YXYZ
6:c
1.Givethefollowingmethod:
2.publicvoidmethod(){
3.Stringa,b;
4.anewString(“helloworld”);
5.bnewString(“gameover”);
6.System.out.println(a+b+”ok”);
7.anull;
8.ab;
9.System.out.println(a);
10.}
11.Intheabsenceofcompileroptimization,whichistheearliestpointthe
objectareferedisdefinitelyelibiletobegarbagecollection.
A.beforeline5
B.beforel
文档评论(0)