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

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

    相關(guān)文章

    最新圖文

    在线观看亚洲成人| 亚洲第一区精品日韩在线播放| 亚洲欧洲日产国码无码网站 | 亚洲精品欧洲精品| 精品亚洲成a人片在线观看| 亚洲乱码一区二区三区国产精品| 亚洲精品电影天堂网| 亚洲小说区图片区| 亚洲一级毛片免费看| 456亚洲人成影院在线观| 久久亚洲精品国产精品婷婷| 亚洲AV男人的天堂在线观看| 成人亚洲国产va天堂| 亚洲啪AV永久无码精品放毛片| 亚洲码欧美码一区二区三区| 色偷偷噜噜噜亚洲男人| 亚洲GV天堂GV无码男同| 亚洲第一se情网站| gogo全球高清大胆亚洲| 亚洲一卡2卡4卡5卡6卡在线99 | 亚洲精品美女在线观看| 亚洲免费视频播放| 亚洲 日韩经典 中文字幕| 亚洲国产精品无码久久九九大片 | 亚洲av无码一区二区三区在线播放| 亚洲AV成人无码久久WWW| 成人伊人亚洲人综合网站222| 五月婷婷亚洲综合| 久久影院亚洲一区| 亚洲成a人片77777kkkk| 亚洲高清无在码在线电影不卡| 亚洲另类春色国产精品| 亚洲欧美熟妇综合久久久久 | 亚洲欧洲日产国产综合网| 亚洲图片激情小说| 亚洲国产午夜精品理论片在线播放 | 亚洲国产系列一区二区三区| 亚洲国产精品18久久久久久| 天堂亚洲免费视频| 亚洲色精品aⅴ一区区三区| 亚洲天堂男人天堂|