<strike id="6q0um"></strike>
  • <strike id="6q0um"><s id="6q0um"></s></strike>
  • <ul id="6q0um"></ul><strike id="6q0um"></strike>

    當(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è)是正常的開(kāi)發(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
    亚洲精品高清一二区久久| 久久久久久久亚洲Av无码| 亚洲春黄在线观看| 亚洲gv猛男gv无码男同短文| 亚洲人成人一区二区三区| 国产亚洲成人在线播放va| 久久久久亚洲av毛片大| 国产成人精品久久亚洲| 亚洲国产精品丝袜在线观看| 亚洲美女在线国产| 中文字幕不卡亚洲| 亚洲精品色午夜无码专区日韩| 亚洲日本韩国在线| 亚洲国产人成精品| 亚洲精品国产电影| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 亚洲国产欧美国产综合一区| 亚洲欧美日韩久久精品| 亚洲AV无码片一区二区三区| 国产亚洲精彩视频| 亚洲色偷拍区另类无码专区| 国产亚洲精品精品国产亚洲综合| 亚洲乱码国产乱码精品精| 亚洲爆乳精品无码一区二区三区 | 无码久久精品国产亚洲Av影片| 亚洲色图国产精品| 亚洲国产综合自在线另类| youjizz亚洲| 亚洲av中文无码字幕色不卡| 亚洲AⅤ视频一区二区三区| 国产亚洲av片在线观看18女人 | 亚洲国产精品成人精品无码区在线| 亚洲AV午夜成人片| 亚洲春黄在线观看| 亚洲熟伦熟女专区hd高清| 亚洲国产欧美日韩精品一区二区三区| 亚洲av无码不卡私人影院| 亚洲中文久久精品无码| 久久精品国产亚洲AV香蕉| 99热亚洲色精品国产88| 在线播放亚洲精品|