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

當(dāng)前位置:高考升學(xué)網(wǎng) > 招聘筆試題 > 正文

Java工程師筆試題和面試題答案

更新:2023-09-15 22:01:53 高考升學(xué)網(wǎng)

  選擇題

  1:Which modifier should be applied to a method for the lock of object this to be obtained prior to excution any of the method body?

  A.synchronized

  B.abstract

  C.final

  D.static

  2:

  Give the following java source fragement:

  //point x

  public class Interesting{

  //do something

  }

  Which statement is correctly Java syntax at point x?

  Give the following java source fragement:

  //point x

  public class Interesting{

  //do something

  }

  Which statement is correctly Java syntax at point x?

  A.public class MyClass{//do other thing…}

  B.static int PI=3.14

  C.class MyClass{//do something…}

  D.none

  3:

  What is the result when you compile and run the following code?

  public class Test

  {

  public void method()

  {

  for(int i = 0; i < 3; i++)

  {

  System.out.print(i);

  }

  System.out.print(i);

  }

  }

  Choices:

  What is the result when you compile and run the following code?

  public class Test

  {

  public void method()

  {

  for(int i = 0; i < 3; i++)

  {

  System.out.print(i);

  }

  System.out.print(i);

  }

  }

  Choices:

  A.0122

  B.0123

  C.Compilation error

  D.None of these

  4: Which of the following statements are true?

  A.The automatic garbage collection of the JVM prevents programs from ever running out of memory

  B.A program can suggest that garbage collection be performed and force it

  C.Garbage collection is platform independent

  D.An object becomes eligible for garbage collection when all references denoting it are set to null.

  5:

  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

  6:

  Give this class outline:

  class Example{

  private int x;

  //rest of class body…

  }

  Assuming that x invoked by the code java Example, which statement can made x be directly accessible in main() method of Example.java?

  Give this class outline:

  class Example{

  private int x;

  //rest of class body…

  }

  Assuming that x invoked by the code java Example, which statement can made x be directly accessible in main() method of Example.java?

  A.Change private int x to public int x

  B.change private int x to static int x

  C.Change private int x to protected int x

  D.change private int x to final int x

  7:

  Given the following class definition:

  class A{

  protected int i;

  A(int i){

  this.i=i;

  }

  }

  which of the following would be a valid inner class for this class?

  Select valid answer:

  Given the following class definition:

  class A{

  protected int i;

  A(int i){

  this.i=i;

  }

  }

  which of the following would be a valid inner class for this class?

  Select valid answer:

  A.class B{ }

  B.class B extends A{ }

  C.class B extends A{ B(){System.out.println(“i=”+i);} }

  D.class B{ class A{} }

  8:軟件生命周期的瀑布模型把軟件項(xiàng)目分為3個(gè)階段、8個(gè)子階段,以下哪一個(gè)是正常的開發(fā)順序?

相關(guān)文章

最新圖文

2020年河北新聞網(wǎng)兩學(xué)一做

時(shí)間:2023-09-18 07:0:24

2020年河北新聞網(wǎng)兩學(xué)一做

時(shí)間:2023-09-15 11:0:59

兩學(xué)一做學(xué)習(xí)教育知

時(shí)間:2023-09-21 06:0:30

2020年開展兩學(xué)一做學(xué)習(xí)教

時(shí)間:2023-09-19 21:0:30
主站蜘蛛池模板: 亚洲国产精品一区二区三区久久 | 日韩欧美亚洲中字幕在线播放 | 成人欧美一区二区三区黑人免费 | 日日射夜夜 | 国产精品麻豆免费版 | 国内一卡2卡三卡四卡在线 国内一级一级毛片a免费 | 人人入人人 | 免费在线欧美 | 草逼综合 | 日韩一区二区三区视频 | 99久久精品免费看国产免费 | 欧洲成人爽视频在线观看 | 国产91在线免费观看 | 欧美精品超清在线播放 | 自拍偷自拍亚洲精品情侣 | 一级做a爱片特黄在线观看免费看 | 99精品在线免费 | 国产在线激情视频 | 色天使久久综合给合久久97色 | 亚洲人欧洲日韩 | 国产一区国产二区国产三区 | 国产福利麻豆精品一区 | www.日本精品 | 国产成人综合网在线播放 | 偷偷狠狠的日日日日 | 亚洲视频色图 | 日本免费色网站 | 日韩专区欧美 | 一本久久精品一区二区 | 草久在线观看视频 | 国产全黄a一级毛片视频 | 久久国产精品二区99 | 日本高清精品 | 年轻的馊子1中字hd 年轻的嫂子在线线观免费观看 | 2021国产麻豆剧果冻传媒入 | 日韩手机视频 | 狠狠综合久久久综合 | 亚洲蜜芽在线精品一区 | 日本精品国产 | 久久精品免费一区二区视 | 亚洲精品中文字幕乱码影院 |