当前位置:七七学习网文档大全求职指南求职笔试面试笔试题目思迁数码科技招聘Java软件工程师笔试真题» 正文

思迁数码科技招聘Java软件工程师笔试真题

[10-10 21:21:19]   来源:http://www.77xue.com  笔试题目   阅读:8993
概要:return oa[0];//line 7}}When is the Float object, created in line 3,eligible for garbage collection?public class X{public Object m(){Object o = new Float(3.14F);//line 3Object [] oa = new Object[1];//line 4oa[0] = o;//line 5o=null;//line 6return oa[0];//line 7}}When is the Float object, created in line 3,eligible for garbage collection?A.just after line 5.B.just after line 6C.just after line 7(that is,as the method returns)D.never in this method10
思迁数码科技招聘Java软件工程师笔试真题,标签:驾照笔试题目,腾讯笔试题目,http://www.77xue.com

  return oa[0];//line 7

  }

  }

  When is the Float object, created in line 3,eligible for garbage collection?

  public class X{

  public Object m(){

  Object o = new Float(3.14F);//line 3

  Object [] oa = new Object[1];//line 4

  oa[0] = o;//line 5

  o=null;//line 6

  return oa[0];//line 7

  }

  }

  When is the Float object, created in line 3,eligible for garbage collection?

  A.just after line 5.

  B.just after line 6

  C.just after line 7(that is,as the method returns)

  D.never in this method

  10:Math.round(-11.5)等於多少?

  A.-11

  B.-12

  C.-11.5

  D.none

  11:In the following pieces of code, which one will compile without any error?

  A.StringBuffer sb1 = "abcd";

  B.Boolean b = new Boolean("abcd");

  C.C: byte b = 255;

  D.float fl = 1.2;

  12:

  Give the following method:

  public void method( ){

  String a,b;

  a=new String(“hello world”);

  b=new String(“game over”);

  System.out.println(a+b+”ok”);

  a=null;

  a=b;

  System.out.println(a);

  }

  In the absence of compiler optimization, which is the earliest point the object a refered is definitely elibile to be garbage collection.

  Give the following method:

  public void method( ){

  String a,b;

  a=new String(“hello world”);

  b=new String(“game over”);

  System.out.println(a+b+”ok”);

  a=null;

  a=b;

  System.out.println(a);

  }

  In the absence of compiler optimization, which is the earliest point the object a refered is definitely elibile to be garbage collection.

  A.before line 5

  B.before line 6

  C.before line 7

  D.before line 9

  13:

  Give the following java class:

  public class Example{

  static int x[]=new int[15];

  public static void main(String args[]){

  System.out.println(x[5]);

  }

  }

  Which statement is corrected?

  Give the following java class:

  public class Example{

  static int x[]=new int[15];

  public static void main(String args[]){

  System.out.println(x[5]);

  }

  }

  Which statement is corrected?

  A.When compile, some error will occur.

  B.When run, some error will occur.

  C.Output is zero.

  D.Output is null.

  14:以下的C程序代码片段运行后C和d的值分别是多少

  Int a =1,b =2;

  Int c,d;

  c =(a&b)&&a;

  d =(a&&b)&a;

  A.0,0

  B.0,1

  C.1,0

  D.1,1

  简答题

  15:15个教徒和15 个非教徒在深海上遇险,必须将一半的人投入海中,其余的人才能幸免于难,于是想了一个办法:30个人围成一圆圈,从第一个人开始依次报数,每数到第九个人就将他扔入大海,如此循环进行直到仅余15个人为止。问怎样排法,才能使每次投入大海的都是非教徒。

上一页  [1] [2] [3] [4]  下一页


Tag:笔试题目驾照笔试题目,腾讯笔试题目求职指南 - 求职笔试面试 - 笔试题目
联系我们 | 网站地图 | 范文大全 | 管理知识 | 教学教育 | 作文大全 | 语句好词
Copyright http://www.77xue.com--(七七学习网) All Right Reserved.
1 2 3 4 5 6 7 8 9 10