为了正常的体验网站,请在浏览器设置里面开启Javascript功能!
首页 > 神州泰岳 面试题

神州泰岳 面试题

2011-08-05 3页 doc 34KB 61阅读

用户头像

is_130223

暂无简介

举报
神州泰岳 面试题北京神州泰岳软件股份有限公司招聘测试试题 (可多选) 1​ JAVA基础 1.​ Given the following code for the Demo class: 1.​ public class Demo { 2.​ private int [] count; 3.​  public Demo() {count = new int[10];} 4.​  public void setCount(int ct,int n) {count[n]=ct;} 5.​  public void showCount(int n)...
神州泰岳 面试题
北京神州泰岳软件股份有限公司招聘测试试 (可多选) 1​ JAVA基础 1.​ Given the following code for the Demo class: 1.​ public class Demo { 2.​ private int [] count; 3.​  public Demo() {count = new int[10];} 4.​  public void setCount(int ct,int n) {count[n]=ct;} 5.​  public void showCount(int n) {System.out.println(“Count is:”+count[n];) 6.​  public int getCount (int n) {return count[n];} 7.​ } Question A : What would be the result of calling the showCount method with a parameter of 9 immediately after creating an instance of Demo? Question B: Where are the bug code in the Demo class?And why? 2. Given: 1.​ public class X { 2.​  public void m(Object x) { 3.​  x = new Integer(99); 4.​  Integer y = (Integer)x; 5.​  y = null; 6.​  System.out.println(“x is:” + x); 7.​  } 8.​ } When is the Integer object created in line 3 , eligible for garbage collection? 1.​ public class MyTextArea extends TextArea { 2.​  public MyTextArea (int nrows, int ncols) { 3.​  enableEvents (AWTEvent .TEXT_EVENT_MASK); 4.​  } 5.​  6.​ public void processTextEvent (TextEvent te) { 7.​  System.out.println(“Processing a text event .”); 8.​  } 9.​ } A . The source code must appear in a file called MyTextArea.java B . Between lines 2 and 3,a call should be made to super(nrows,ncols) so that the new component will have the corrent size. D . At line 6,the return type of processTextEvents()should be declared Boolean ,not void . D . Between lines 7 and 8 ,the following code should appear : return true; E . Between lines 7 and 8,the following code should appear : super processTextEvent (te); 2​ . 数据库 1、计一个用于不同职业、不同地区、不同年龄段人群收入的数据库模型 2.JDBC 访问数据库后得到的ResultSet 以0 还是1 开始,Vector 是从0 还是1 开始 3​ . 网络 1、ping 使用的是哪一个协议? A . TCP B . ARP C . ICMP D . BootP 2 、如下IP所在网段的有效IP地址范围是多少? 192.168.168.188.255.255.255.192 A .192.168.168.129-190 B . 192.168.168.1-254 C . 192.168.168.128-190 D . 192.168.168.128-192 3、当一个路由器收到一个未知目的地包的时候,这台路由器将如何处理该数据包 A . 将包传递出去 B 。将包丢弃 C 。 保留该包,直到路由刷新 D 。将该包作为广播包发出去 4、交换机处于OSI模型中的第几层? A 。数据链路层 B 。物理层 C 。应用层 D 。传输层 5​  、谈谈你对VLAN和WAP的认识? 4、SNMP: 1、​ SNMP协议有多少版本? 2、​ SNMP协议有多少种报文,请一一列出? 3、​ What happens when you try to compile and run the following application?Choose All corrent options. 1.​ public class Z { 2.​  public static void main(String a[]) { 3.​  new Z(); 4.​  } 5.​  6.​  Z() { 7.​  Z alias1 = this; 8.​  Z alias2 = this; 9.​  synchronized(alias1) { 10.​  try { 11.​  alias2.wait(); 12.​  System.out.println(“DONE WAITING”); 13.​  } 14.​  catch (InterruptedException e) { 15.​  System.out.println (“INTERR UPTED”); 16.​  } 17.​  catch (Exception e) { 18.​  System.out.println(“OTHER EXCEPTION”); 19.​  } 20.​  finally { 21.​  System.out.println(“FINALLY”); 22.​  } 23.​  } 24.​  System.out.println(“ALL DONE”); 25.​  } 26.​ } A . The application compiles but doesn’t print anything. B . The application compiles and print “DONE WAITING” C . The application compiles and print “FINALLY” D . The application compiles and print “ALL DONE” E . The application compiles and print “INTERRUPTED” 5 . 网络管理: (1) 列出你所用过或听过的网络管理软件,并谈谈你对该软件的看法?
/
本文档为【神州泰岳 面试题】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索