深圳市易思博信息技术有限公司面试题.doc

深圳市易思博信息技术有限公司面试题.doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
选择题 1: 给出下面的代码片断。。。下面的哪些陈述为错误的? ?? 1)?public?void?create()?{ ?? 2)????Vector?myVect; ?? 3)????myVect?=?new?Vector(); ?? 4)?}?? 给出下面的代码片断。。。下面的哪些陈述为错误的? 1) public void create() { 2) Vector myVect; 3) myVect = new Vector(); 4) } A.第二行的声明不会为变量myVect分配内存空间。 B.第二行语句创建一个Vector类对象。 C.第三行语句创建一个Vector类对象。 D.第三行语句为一个Vector类对象分配内存空间 2:public class Parent {   int change() {…} } class Child extends Parent { } Which methods can be added into class Child? A.public int change(){} B.abstract int chang(){} C.private int change(){} D.none 3: String?s=”Example?String”;Which?operation?is?not?legal??? String s=”Example String”;Which operation is not legal? A.int i=s.length(); B.s[3]=”x”; C.String short_s=s.trim(); D.String t=”root”+s; 4:Which code fragments would correctly identify the number of arguments passed via command line to a Java application, exclude the name of the class that is being invoke. A.int count = args.length; B.int count = args.length-1; C.int count=0; while(args[count]!=null) count++; D.int count=0;while (!(args[count].equals(“”))) count++; 5:软件生命周期的瀑布模型把软件项目分为3个阶段、8个子阶段,以下哪一个是正常的开发顺序? A.计划阶段、开发阶段、运行阶段 B.设计阶段、开发阶段、编码阶段 C.设计阶段、编码阶段、维护阶段 D.计划阶段、编码阶段、测试阶段 6: What?will?happen?when?you?attempt?to?compile?and?run?the?following?code?? ?? ?? int?Output?=?10; ?? ?? boolean?b1?=?false;? ?? ?? if((b1?==?true)??((Output?+=?10)?==?20)) ?? ?? { ?? ?? ???System.out.println(We?are?equal??+?Output); ?? ?? }? ?? ?? else?? ?? { ?? ?? ???System.out.println(Not?equal!??+?Output); ?? ?? }? ?? ?? Choices:?? What will happen when you attempt to compile and run the following code? int Output = 10; boolean b1 = false; if((b1 == true) ((Output += 10) == 20)) { System.out.println(We are equal + Output); } else { System.out.println(Not equal! + Output); } Choices: A.Compilation error, attempting to perform binary comparison on logical data type B.Compilation and output of We are equal 10. C.Compilation and output of Not equal! 20. D.Compil

文档评论(0)

好老师 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档