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

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

    Java工程師筆試題和面試題答案(三)

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

      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;//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

      12:

      What will happen when you attempt to compile and run the following code?

      public class Static

      {

      static

      {

      int x = 5;

      }

      static int x,y;

      public static void main(String args[])

      {

      x--;

      myMethod();

      System.out.println(x + y + ++x);

      }

      public static void myMethod()

      {

      y = x++ + ++x;

      }

      }

      Choices:

      What will happen when you attempt to compile and run the following code?

      public class Static

      {

      static

      {

      int x = 5;

      }

      static int x,y;

      public static void main(String args[])

      {

      x--;

      myMethod();

      System.out.println(x + y + ++x);

      }

      public static void myMethod()

      {

      y = x++ + ++x;

      }

      }

      Choices:

      A.prints : 2

      B.prints : 3

      C.prints : 7

      D.prints : 8

      13:假定a和b為int型變量,則執(zhí)行下述語句組后,b的值為

      a=1;

      b=10;

      do

      {

      b-=a;

      a++;

      } while (b--<0);

      A.9

      B.-2

      C.-1

      D.8

      14:設有變量說明語句int a=1,b=0;

      則執(zhí)行以下程序段的輸出結(jié)果為( )。

      switch (a)

      {

      case 1:

      switch (b)

      {

      case 0:printf("0");break;

      case 1:printf("1");break;

      }

      case 2:printf("2");break;

    相關文章

    最新圖文

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

    時間:2023-09-18 07:0:24

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

    時間:2023-09-15 11:0:59

    兩學一做學習教育知

    時間:2023-09-21 06:0:30

    2020年開展兩學一做學習教

    時間:2023-09-19 21:0:30
    亚洲第一区在线观看| 亚洲精品动漫免费二区| 亚洲国产精品综合久久网各| 亚洲啪啪AV无码片| 国产偷国产偷亚洲高清人| 亚洲av中文无码字幕色不卡| 亚洲中文字幕无码av永久| 亚洲午夜精品一区二区麻豆| 456亚洲人成影院在线观| 色婷五月综激情亚洲综合| 亚洲综合丁香婷婷六月香| 亚洲三级中文字幕| 亚洲免费电影网站| ass亚洲**毛茸茸pics| 亚洲妇女熟BBW| 亚洲午夜无码久久久久软件| 亚洲日韩国产AV无码无码精品| 中文字幕亚洲码在线| 亚洲人成无码网站在线观看| 亚洲中文字幕日本无线码| 亚洲自偷自偷在线成人网站传媒| 亚洲男人的天堂网站| 女bbbbxxxx另类亚洲| 亚洲免费无码在线| 久久久久亚洲精品天堂久久久久久 | 亚洲一区二区三区免费在线观看| 亚洲免费在线视频播放| 亚洲国产精品一区二区三区在线观看| 中国亚洲呦女专区| 色窝窝亚洲av网| 亚洲午夜国产片在线观看| 亚洲香蕉网久久综合影视| 亚洲av无码专区国产乱码在线观看 | 大胆亚洲人体视频| 亚洲免费日韩无码系列| 亚洲精品无码久久久久sm| 亚洲第一视频网站| 亚洲中字慕日产2021| 亚洲日韩一区精品射精| 日韩精品电影一区亚洲| 在线观看亚洲精品国产|