日韩精品一区二_av在线色_中文二区_日本成人三级_a免费在线观看_国产精品久久久久久久久久久久久久久

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

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

更新:2023-09-15 22:01:53 高考升學網

  選擇題

  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:軟件生命周期的瀑布模型把軟件項目分為3個階段、8個子階段,以下哪一個是正常的開發順序?

最新圖文

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
主站蜘蛛池模板: 麻豆久久久久久 | 国产小视频在线播放 | 国产精品欧美一区二区三区 | 影音先锋亚洲资源 | 国产日韩欧美一区 | 国产激情视频在线观看 | 欧洲精品视频一区 | 精品国产91 | 久久视频免费在线 | 亚洲欧美一级久久精品 | 91久久久久久久久 | 中文字幕本久久精品一区 | 免费中文字幕 | 99国产在线视频 | 国产精品高清在线 | 爱干视频 | 我和我的祖国电影在线观看免费版高清 | 亚洲区国产区 | 一级片欧美 | av片免费看| 国产成人免费在线观看 | 日本黄色三级网站 | 99亚洲精品 | 精品中文字幕一区二区三区 | 久久亚洲天堂 | 免费福利网站 | 日韩中文在线 | 999视频网| 九色在线| 国产一区二区视频在线观看 | 亚洲精品国产9999久久久久 | 亚洲国产欧美日韩 | 91tv亚洲精品香蕉国产一区 | 国产大奶视频 | 亚洲欧美高清 | 欧美日韩国产一区二区三区 | 国产精品高潮呻吟久久av野狼 | 精品三级在线观看 | 久久久久久亚洲国产 | 亚洲国产成人久久一区二区三区 | 久久国产综合 |