91com在线观看_五级片网站_久99视频_快播91_91免费版看片_www.91视频com

当前位置:高考升学网 > 招聘笔试题 > 正文

新华信国际信息咨询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久re热视频这里只有精品6 | 免费国精产品wnw2544 | 性久久久久久久久久 | 精品久久久无码中文字幕天天 | 亚洲视屏在线观看 | 国产极品美女高潮抽搐免费网站 | 91香蕉视频污在线观看 | 医院人妻闷声隔着帘子被中出 | 欧美日韩国产一区二区三区 | 性欧美高清久久久久久久 | 免费观看黄的小视频 | 日韩亚洲色图 | 国产熟女乱子视频正在播放 | 国产 麻豆| 免费一级a毛片在线 | 亚洲国产精品一区二区成人片国内 | 在线亚洲精品防屏蔽 | 香蕉视频在线观看亚洲 | 成 人 黄 色 视频播放165 | 亚洲av不卡一区二区三区 | av一本久道久久综合久久鬼色 | 久久久久久久久综合影视网 | 国产精品免费入口视频 | 在线精品国产成人综合第一页 | 三级特黄60分钟在线观看 | 国产人与禽zoz0性伦 | 影音先锋无码aⅴ男人资源站 | 欧美一级图片 | 一级毛片免费不卡 | 成年人毛片网站 | 欧区一欧区二欧区三免费 | 337人体做爰大胆视频 | 久久99在线 | 96精品免费视频大全 | 色噜噜狠狠一区二区 | 男阳茎进女阳道啪啪 | 一级日本高清视频免费观看 | 久久网综合 | 青青青国产观看免费视频 | 亚洲综合无码一区二区三区 | 午夜大片免费男女爽爽影院久久 |