• <nav id="cwumo"><code id="cwumo"></code></nav>
  • <menu id="cwumo"><strong id="cwumo"></strong></menu>

    Sun-Java程序員認證考試題庫

    時間:2024-05-29 13:25:53 SUN認證 我要投稿
    • 相關推薦

    2017年Sun-Java程序員認證考試題庫

      sun公司名稱的由來很多人不知道,它其實是斯坦福大學校園網(Stanford University Network)的首字母縮寫。yjbys小編收集一些Sun_Java程序員認證考試題庫,希望大家認真閱讀!

    2017年Sun-Java程序員認證考試題庫

      1.下列哪項不屬于Java語言的基本數據類型?

      A.int

      B.String

      C.double

      D.boolean

      2.下列哪項不是int類型的字面量?

      A.\u03A6

      B.077

      C.OxABBC

      D.20

      3.下列哪項不是有效的標識符?

      A.userName

      B.2test

      C.$change

      D._password

      4.下列哪項是Java語言中所規定的注釋樣式?(選三項)

      A.//單行注釋

      B.--單行注釋

      C. /*

      *單行或多行注釋

      */

      D. /kk

      *文檔注釋

      */

      5.下列哪項不是Java語言的關鍵字?

      A.goto

      B.sizeof

      C.instanceof

      D.volatile

      6.現有如下五個聲明:

      Linel: int a_really_really_really_long_variable_name=5 ;

      Line2: int _hi=6;

      Line3: int big=Integer. getlnteger("7”);

      Line4:int $dollars=8;

      line5: int %opercent=9;

      哪行無法通過編譯?

      A.Line1

      B.Line3

      C. Line4

      D. Line5

      7.現有:

      1. class Top {

      2. static int x=l;

      3. public Top (inty) { x*=3; }

      4. }

      5. class Middle extends Top {

      6. public Middle() {x+=1; )

      7. public static void main (String [] args) {

      8. Middle m = new Middle();

      9. System. out .println (x);

      IO. }

      II. }

      結果為:

      A.1

      B. 2

      C.3

      D.編譯失敗

      8.現有:

      1. class Passer f

      2. static final int X=5;

      3.public static void main (String [] args) {

      4. new Passer().go (x);

      5.System. out .print (x);

      6, )

      7. void go (int x) {

      8.System. out .print(x++);

      9. }

      10. }

      結果是什么?

      A.55

      B.56

      C.65

      D.66

      9.現有:

      1. class Wrench f

      2.public static void main(String [] args) {

      3.Wrench w=new Wrench(); Wrench w2=new Wrench();

      4. w2=go (w, w2);

      5.System.out.print (w2==w);

      6. }

      7.static Wrench go (Wrench wrl, Wrench wr2) {

      8.Wrench wr3=wrl; wrl=wr2; wr2=wr3;

      9. return wr3;

      10. }

      11. }

      結果是什么?

      A. false

      B. true

      C.編譯失敗

      D.運行的時候有異常拋出

      10.現有:

      5. class Wrench2 {

      6. int size;

      7.public static void main(String [] args) {

      8.Wrench2 w=new Wrench2();

      9. w.size=II;

      IO. Wrench2 w2=go(w, w.size);

      II. System. out .print (w2. size);

      12. )

      13. static Wrench2 go(Wrench2 wr. int s) {

      14. S=12;

      15。 return wr;

      16. }

      17. }

      結果為:

      A. 11

      B. 12

      c.編譯失敗。

      D.運行時異常被拋出

    【Sun-Java程序員認證考試題庫】相關文章:

    Photoshop認證考試題庫03-10

    2016年Adobe認證考試Photoshop題庫03-07

    Adobe Illustrator認證考試題庫03-07

    Oracle OCP認證考試題庫12-31

    NIIT認證Java考試題庫03-27

    Adobe Photoshop認證考試題庫03-07

    Linux認證考試題庫及答案10-26

    ADOBEphotoshop國際認證題庫12-04

    photoshop國際認證題庫03-31

    日韩激情