欧美在线观看www-欧美在线观看高清一二三区-欧美在线观看网站-欧美在线观看网址-国产高清在线精品免费-国产高清在线精品一区二区

當前位置:高考升學網 > 招聘筆試題 > 正文

新華信國際信息咨詢JAVA工程師筆試題和面試題答案

更新:2023-09-18 13:10:37 高考升學網

  選擇題

  1:Which statement about the garbage collection mechanism are true?

  A.Garbage collection require additional programe code in cases where multiple threads are running.

  B.The programmer can indicate that a reference through a local variable is no longer of interest.

  C.The programmer has a mechanism that explicity and immediately frees the memory used by Java objects.

  D.The garbage collection mechanism can free the memory used by Java Object at explection time.

  2:

  Given:

  1. public class test (

  2. public static void main (String args[]) {

  3. int i = 0xFFFFFFF1;

  4. int j = ~i;

  5.

  6. }

  7. )

  What is the decimal value of j at line 5?

  Given:

  1. public class test (

  2. public static void main (String args[]) {

  3. int i = 0xFFFFFFF1;

  4. int j = ~i;

  5.

  6. }

  7. )

  What is the decimal value of j at line 5?

  A.0

  B.1

  C.14

  D.-15

  3:

  What happens when you try to compile and run the following program?

  class Mystery{

  String s;

  public static void main(String[] args){

  Mystery m=new Mystery();

  m.go();

  }

  void Mystery(){

  s=”constructor”;

  }

  void go(){

  System.out.println(s);

  }

  }

  What happens when you try to compile and run the following program?

  class Mystery{

  String s;

  public static void main(String[] args){

  Mystery m=new Mystery();

  m.go();

  }

  void Mystery(){

  s=”constructor”;

  }

  void go(){

  System.out.println(s);

  }

  }

  A.this code compliles but throws an exception at runtime

  B.this code runs but nothing appears in the standard output

  C.this code runs and “constructor” in the standard output

  D.this code runs and writes ”null” in the standard output

  4:

  public class X{

  public Object m(){

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

  Object [] oa = new Object;//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?

  public class X{

  public Object m(){

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

  Object [] oa = new Object;//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

  5:

  下述程序代碼中有語法錯誤的行是( )。

  int i,ia[10],ib[10]; /第一行/

  for (i=0;i<=9;i++) /第2行/

  ia[i]=0; /第3行/

  ib=ia; /第4行/

最新圖文

2020年河北新聞網兩學一做

時間:2023-09-18 07:0:24

2020年河北新聞網兩學一做

時間:2023-09-15 11:0:59

兩學一做學習教育知

時間:2023-09-21 06:0:30

2020年開展兩學一做學習教

時間:2023-09-19 21:0:30
主站蜘蛛池模板: 精品国产自在在线在线观看 | 欧美成人一区二区三区在线视频 | 爱豆传媒免费最新视频下载 | 欧美成人免费网站 | 久久这里只精品国产99热 | 国产原创麻豆精品视频 | 四虎4hu永久免费国产精品 | 亚洲国产精品久久精品成人 | 窝窝影院午夜色在线视频 | 国产精品久久毛片完整版 | 国产免费资源高清小视频在线观看 | 91久久夜色精品国产九色 | 久草视频在线资源 | 欧美亚洲国产精品久久久久 | 99色在线视频 | 国产性大片免费播放网站 | 日韩资源在线观看 | 亚欧洲精品在线视频免费观看 | 欧美日韩亚洲国产精品一区二区 | 最近高清免费观看日本 | 亚洲综合一区二区三区四区 | 国产高清在线视频一区二区三区 | 国产毛片一区二区三区精品 | 黄页网址在线观看 | 色妞妞www精品视频 色妞www精品一级视频 | 一区二区三区毛片免费 | 色老头综合网 | 午夜香蕉| 欧美日韩中文在线 | 一色屋精品亚洲香蕉网站 | 精品自拍视频在线观看 | 亚洲免费在线播放 | 无遮挡又黄又刺激的视频 | 九热| 大乳女子一级毛片 | 全面回忆在线观看免费完整版高清 | 麻豆视频播放 | 午夜欧美视频 | 免费特黄一区二区三区视频一 | 日日碰狠狠添天天爽五月婷 | 91最懂男人的午夜社区 |