为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

技术笔试题--联通华建网络公司

2017-12-19 7页 doc 20KB 26阅读

用户头像

is_083599

暂无简介

举报
技术笔试题--联通华建网络公司技术笔试题--联通华建网络公司 1.请选择有效的标识.acd a. _sysl_lll b. 2mail c. $change d. class 2.请选择两个正确的声明: a. char c='\''; b. byte c=300; c. char c=12; d. char c="abc"; 3.Collection的接口和类位于包: a. java.lang b. java.util c. java.net d. java.io 4. public class Happy{ publi...
技术笔试题--联通华建网络公司
技术笔试题--联通华建网络公司 1.请选择有效的标识.acd a. _sysl_lll b. 2mail c. $change d. class 2.请选择两个正确的声明: a. char c='\''; b. byte c=300; c. char c=12; d. char c="abc"; 3.Collection的接口和类位于包: a. java.lang b. java.util c. java.net d. java.io 4. public class Happy{ public static void main(String args[]){ String word = "restruture"; System.out.println(word.substring(2,3)); } } 请选择执行结果? a. est b. es c. str d. st e. s 5. public static void main(String args[]){ Boolean a[] = new Boolean[4]; int I=1; System.out.println(a[I]); } 请选择执行结果? a. Compilation Error in line 2 b. Compilation Error in line 4 c. Execption in line 4 d. Will print true e. Will print false f. Will rint null 6. public static void main(String args[]){ Integer b = Integer(10); add(b); System.out.println(b.intvalue()); } static void add(Integer b){ int i = b.intvalue(); i+=3; b=new Integer(i); } 请选择执行结果? a. Will print 13 b. Will print 10 c. Compilation Error in Line 4? implicit conversion to Integer to d. String is not possible e. Compilation Error in line 10 you can't reinitialize a Wapper d. Class e. Exception in line 10 7.那个方法开始线程的执行, a) init(); b) start(); c) run(); d) resume(); 8.String s = "ABCD"; s.comcat("E"); s.replace("C","F"); System.out.println(s); 请选择执行结果, a) Compilation Error says that String is immutable b) ABFDE c) ABCDE d) ABCD 9.请选择内部元素允许重复的接口。 a) SortedSet b) Set c) Sorted Map d) Collection e) TreeSet 10.选择关于Map的正确陈述。 a) A mao will order the elements in an order according the key b) A map will use unique key to store value c) A map will use unique key to identilfy value inside the map 11. public class Tomcat{ public static coid main(String args[]){ String s0="Hello World"; String s1="Hello World"; String s2=append(s0,null); String s3=append(s1,null); System.out.println(s0==s1); System.out.println(s2==s3); System.out.println(s2.equals(s3)); } static public String append(String s0,String s1){ return s0+s1; } } 请选择执行结果, a) true true true b) true true false c) true false true d) true false false e). false false true f). false false false 12.执行下列代码后,哪个结论是正确的 String[] s=new String[10]; a.s[10]为“”; b.s[9]为null; c.s[0]为未定义 d.s.length为10 13。下列哪些语句关于内存回收的说明是正确的, a.程序员必须创建一个线程来释放内存 b.内存回收程序负责释放无用内存 c.内存回收程序允许程序员直接释放内存 d.内存回收程序可以在指定的时间释放内存对象 14.class B{ private int radius=10; public void draw(){ System.out.println("B.draw(),radius =" + radius); } public B(){ System.out.println("B constructor"); draw(); } public class Test{ extends B{ private int radius=1; public void draw(){ System.out.println("A.draw(),radius =" + radius); } } } public Test(int radius){ this.radius=radius; System.out.println("A constructor"); } public static void main(String[] args){ Test a=new Test(5); } } 请选择执行结果, a.B constructor A.draw(),radius=0 A constructor b.B constructor A.draw(),radius=5 A constructor c.B constructor A.draw(),radius=10 A constructor d.A constructor A.draw(),radius=5 B constructor 编程题 1。请编程实现冒泡排序,注意编码风格。 2。在一个组织内,每个成员都属于一个部门,每个部门都隶属于自己的上级部 门,每个程序员都被分配了若干角色。 问题1:请数据。 问题2:写出SQL语句,统计每个部门的成员数量。 问题3:写出SQL语句,列出查询符合条件的部门名称:部门内所有成员的角 色数量都大于1。
/
本文档为【技术笔试题--联通华建网络公司】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索