凌志软件 中级软件工程师

上传人:第*** 文档编号:34037366 上传时间:2018-02-20 格式:DOC 页数:16 大小:290.50KB
返回 下载 相关 举报
凌志软件 中级软件工程师_第1页
第1页 / 共16页
凌志软件 中级软件工程师_第2页
第2页 / 共16页
凌志软件 中级软件工程师_第3页
第3页 / 共16页
凌志软件 中级软件工程师_第4页
第4页 / 共16页
凌志软件 中级软件工程师_第5页
第5页 / 共16页
点击查看更多>>
资源描述

《凌志软件 中级软件工程师》由会员分享,可在线阅读,更多相关《凌志软件 中级软件工程师(16页珍藏版)》请在金锄头文库上搜索。

1、凌志软件 中级软件工程师选择题 1: if (a = true) What will be the result of executing the following code? boolean a = true; boolean b = false; boolean c = true; if (a = true) if (b = true) if (c = true) System.out.println(Some things are true in this world); else System.out.println(Nothing is true in this world!);

2、else if (a else System.out.println(Hey this wont compile); Choices: What will be the result of executing the following code? boolean a = true;boolean b = false;boolean c = true;if (b = true)if (c = true) System.out.println(Some things are true in this world);else System.out.println(Nothing is true i

3、n this world!);else if (a & (b = c) System.out.println(Its too confusing to tell what is true and what is false);else System.out.println(Hey this wont compile); Choices:A.The code wont compile B.Some things are true in this world will be printed C.Hey this wont compile will be printed D.None of thes

4、e 2:使用 JDBC 可以做到的是 A.把二进制代码传送到任何关系数据库中 B.把 Java 源代码传送到任何关系数据库中 C.把表单信息传送到任何关系数据库中 D.很容易地把 SQL 语句传送到任何关系数据库中 3: The following code is entire contents of a file called Example.java,causes precisely one error during compilation: class SubClass extends BaseClass class BaseClass() String str; public Base

5、Class() System.out.println(“ok”); public BaseClass(String s) str=s; public class Example public void method() SubClass s=new SubClass(“hello”); BaseClass b=new BaseClass(“world”); Which line would be cause the error? The following code is entire contents of a file called Example.java,causes precisel

6、y one error during compilation:class SubClass extends BaseClassclass BaseClass()String str;public BaseClass()System.out.println(“ok”);public BaseClass(String s)str=s;public class Examplepublic void method()SubClass s=new SubClass(“hello”);BaseClass b=new BaseClass(“world”);Which line would be cause

7、the error? A.9 B.10 C.11 D.12 4:软件生命周期的瀑布模型把软件项目分为 3 个阶段、8 个子阶段,以下哪一个是正常的开发顺序? A.计划阶段、开发阶段、运行阶段 B.设计阶段、开发阶段、编码阶段 C.设计阶段、编码阶段、维护阶段 D.计划阶段、编码阶段、测试阶段 5: What will be the result of executing the following code? public static void main(String args) char digit = a; for (int i = 0; i = 0 : methodB(); Syste

8、m.out.println(i); public void methodB() System.out.println(The value must not be negative); public static void main(String args) AssertTest test = new AssertTest(); test.methodA(-10); What will happen when you attempt to compile and run the following code?(Assume that the code is compiled and run wi

9、th assertions enabled.)public class AssertTestpublic void methodA(int i)assert i = 0 : methodB();System.out.println(i);public void methodB() System.out.println(The value must not be negative);public static void main(String args)AssertTest test = new AssertTest();test.methodA(-10); A.it will print -1

10、0 B.it will result in AssertionError showing the message-“the value must not be negative”. C.the code will not compile. D.None of these. 16:以下的 C 程序代码片段运行后 C 和 d 的值分别是多少 Int a =1,b =2; Int c,d; c =(a d =(a A.0,0 B.0,1 C.1,0 D.1,1 17:Which method you define as the starting point of new thread in a cl

11、ass from which new the thread can be excution? A.public void start() B.public void run() C.public void runnable() D.public static void main(String args) 简答题 18:Java 中的异常处理机制的简单原理和应用。 19:Static Inner Class 和 Inner Class 的不同,说得越多越好。 20:正向最大匹配分词,怎么做最快? 21:数组 aN,存放了 1 至 N-1 个数,其中某个数重复一次。写一个函数,找出被重复的数字.时间复杂度必须为 o(N)函数原型: int do_dup(int a,int N) 22:多线程中的同步机制是什么,有什么优缺点? 23:Web.xml 的作用? 24:找到一个子字符串,优化速度,优化空间。 25:说出 ArrayList,Vector, LinkedList 的存储性能和特性。

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 解决方案

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号