国产精品无码一区视频_成年精品在线播放_久久99久久99精品免观看_国产一区二区自拍

所在位置:大風車考試網(wǎng) > 招聘筆試題 > 正文

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

大風車考試網(wǎng)

  選擇題

  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[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?

  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

  5:

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

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

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

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

  ib=ia; /*第4行*/

  • 相關(guān)文章
  • 聯(lián)合利華(Unilever)校園招聘筆試真題聯(lián)合利華(Unilever)校園招聘筆試真題

    語言:英文 一.Numerical(20分鐘,2*10chart=20題) Chart1.全球5大家電生產(chǎn)商 XY坐標系:X軸為低端、中端、高端、超高端,Y軸為收入 問:1)哪家..

  • 格力機械類筆試真題分享格力機械類筆試真題分享

    一、填空題 1、鏈傳動是依靠鏈條與鏈輪輪齒的嚙合來傳遞運動和動力的,所以應屬于撓性傳動。 2、EDM的中文含義是電火花加工(ElectricalDischargeMachin..

  • 德勤公司招聘的筆試推理題德勤公司招聘的筆試推理題

    五個人來自不同地方,住不同房子,養(yǎng)不同動物,吸不同牌子香煙,喝不同飲料,喜歡不同食物。根據(jù)以下線索確定誰是養(yǎng)貓的人。 1,紅房子在藍房子的右邊,白房..

  • 聯(lián)合利華(Unilever)校園招聘筆試真題聯(lián)合利華(Unilever)校園招聘筆試真題

    語言:英文 一.Numerical(20分鐘,2*10chart=20題) Chart1.全球5大家電生產(chǎn)商 XY坐標系:X軸為低端、中端、高端、超高端,Y軸為收入 問:1)哪家..

  • 格力機械類筆試真題分享格力機械類筆試真題分享

    一、填空題 1、鏈傳動是依靠鏈條與鏈輪輪齒的嚙合來傳遞運動和動力的,所以應屬于撓性傳動。 2、EDM的中文含義是電火花加工(ElectricalDischargeMachin..

  • 德勤公司招聘的筆試推理題德勤公司招聘的筆試推理題

    五個人來自不同地方,住不同房子,養(yǎng)不同動物,吸不同牌子香煙,喝不同飲料,喜歡不同食物。根據(jù)以下線索確定誰是養(yǎng)貓的人。 1,紅房子在藍房子的右邊,白房..

  • 河北新聞網(wǎng)兩學一做知識競賽(試題+答案完整版)河北新聞網(wǎng)兩學一做知識競賽(試題+答案完整版)

    2016河北新聞網(wǎng)兩學一做知識競賽開賽啦,快來圍觀吧。活動內(nèi)容為推動“兩學一做”學習教育深入開展,省委宣傳部、省委組織部組織開展“兩學一做”知識競賽活動,河北..

  • 河北新聞網(wǎng)兩學一做知識競賽活動試題答案河北新聞網(wǎng)兩學一做知識競賽活動試題答案

    2016年河北新聞網(wǎng)兩學一做知識競賽活動試題答案為推動“兩學一做”學習教育深入開展,省委宣傳部、省委組織部組織開展“兩學一做”大型知識競賽。此項活動由河北新聞..

  • 兩學一做學習教育知識競賽活動10篇兩學一做學習教育知識競賽活動10篇

    為隆重紀念中國共產(chǎn)黨建黨95周年,推進我市“兩學一做”學習教育深入開展,推動廣大黨員干部認真學好黨章黨規(guī)和*系列重要講話,現(xiàn)將“兩學一做”學習教育知識競賽題予..

  • 開展兩學一做學習教育知識競賽活動真題答案開展兩學一做學習教育知識競賽活動真題答案

    144.根據(jù)《中國共產(chǎn)黨紀律處分條例》規(guī)定,黨的各級代表大會的代表受到(D)處分的,黨組織應當終止其代表資格。A.警告(含)以上B.嚴重警告(含)以上C.撤銷黨內(nèi)職務(wù)(含)以..