Sun認證重點試題

    時間:2024-10-06 04:53:44 SUN認證 我要投稿
    • 相關(guān)推薦

    2016年Sun認證重點試題

      Sun公司推出了Java以及Solaris技術(shù)認證方案。對于企業(yè)而言,可以借助這項認證作為招聘人才的評判標準,或是作為衡量員工技術(shù)水準的依據(jù);在個人方面,通過這些認證也可以證明個人的技術(shù)能力。下面是最新的sun認證考試題及答案,希望能幫助到大家!

    2016年Sun認證重點試題

      1.寫出此程序的輸出結(jié)果.

      class Test_For

      {

      public static void main(String[] args)

      {

      int i=0;

      for(show('A'); show('B')&&(i<2);show('C'))

      {

      i++;

      show('D');

      }

      }

      public static boolean show(char ch)

      {

      System.out.print(ch);

      return true;

      }

      }

      2.寫出此程序的輸出結(jié)果.

      class Demo

      {

      public static void main(String[] args)

      {

      int a=3,b=8;

      int c=(a>b)?a++:b++;

      System.out.println("a="+a+"\tb="+b+"\tc+"+c);

      int d=(a>b)?++a:++b;

      System.out.println("a="+a+"\tb="+b+"\tc+"+d);

      int e=(a

      System.out.println("a="+a+"\tb="+b+"\tc+"+e);

      int f=(a

      System.out.println("a="+a+"\tb="+b+"\tc+"+f);

      }

      }

      3.寫出此程序的輸出結(jié)果.

      class Demo

      {

      public static void main(String []args)

      {

      int i = 0, j = 5;

      tp: for (;;)

      {

      i++;

      for(;;)

      if(i > j--) break tp;

      }

      System.out.println("i = " + i + ", j = "+ j);

      }

      }

      4.寫出此程序的輸出結(jié)果.

      class DemoWhile_3

      {

      public static void main(String[] args)

      {

      int x=1;

      while(x<10)

      {

      wx:while(x<7)

      {

      while(x<4)

      {

      System.out.print("A ");

      x++;

      break wx;

      }

      System.out.print("B ");

      x++;

      }

      System.out.print("C ");

      x++;

      }

      }

      }

      5.選擇正確答案:

      class Test

      {

      public static void main(String[] args)

      {

      String foo=args[1];

      String bar=args[2];

      String baz=args[3];

      }

      }

      d:\>java Test Red Green Blue

      what is the value of baz?

      A. baz has value of ""

      B. baz has value of null

      C. baz has value of "Red"

      D. baz has value of "Blue"

      E. baz has value of "Green"

      F. the code does not compile

      G. the program throw an exception

      6.寫出輸出結(jié)果.

      class Demo

      {

      public static void main(String[] args)

      {

      show(0);

      show(1);

      }

      public static void show(int i)

      {

      switch(i)

      {

      default:

      i+=2;

      case 1:

      i+=1;

      case 4:

      i+=8;

      case 2:

      i+=4;

      }

      System.out.println("i="+i);

      }

      }

    【Sun認證重點試題】相關(guān)文章:

    sun認證java基礎(chǔ)模擬試題03-30

    Sun國際認證03-13

    SUN認證考試科目01-11

    SUN認證考試簡介03-16

    sun認證:java程序設計考試試題03-04

    SUN認證考試流程01-15

    SUN JAVA認證介紹12-18

    SUN認證考試項目01-11

    sun認證報考指南03-08

    91久久大香伊蕉在人线_国产综合色产在线观看_欧美亚洲人成网站在线观看_亚洲第一无码精品立川理惠

      色婷婷婷亚洲综合丁香五月 | 亚洲欧美日韩综合久久 | 香蕉伊蕉中文在线视频播放 | 中文无遮挡h肉视频在线观看 | 六月丁香婷婷亚洲中文字幕 | 中文字字幕在线中文字在线看 |