• <sub id="h4knl"><ol id="h4knl"></ol></sub>
    <sup id="h4knl"></sup>
      <sub id="h4knl"></sub>

      <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
      1. <strong id="h4knl"></strong>

      2. Sun認(rèn)證Java程序員SCJP考題常見(jiàn)陷阱

        時(shí)間:2024-06-14 11:27:59 SUN認(rèn)證 我要投稿
        • 相關(guān)推薦

        Sun認(rèn)證Java程序員(SCJP)考題常見(jiàn)陷阱集合

          (1) Two public classes in the same file. (illegal)

        Sun認(rèn)證Java程序員(SCJP)考題常見(jiàn)陷阱集合

          同一個(gè)文件里有兩個(gè)public類(lèi)。(非法)

          (2) Main method calling a non-static method. (illegal)

          在main(String[] args)方法內(nèi)調(diào)用一個(gè)非靜態(tài)方法。(非法)

          (3) Methods with the same name as the constructor(s). (這種題常有)

          與Constructor(s)有相同名字的方法。

          (4) Thread initiation with classes that do not have a run() method.

          初始化了一個(gè)沒(méi)有run()方法的線(xiàn)程類(lèi)。

          (5) Local inner classes trying to access non-final vars. (illegal)

          內(nèi)部類(lèi)嘗試訪(fǎng)問(wèn)非final變量(非法)

          (6) Case statements with values out of permissible range. (byte,int, short,chat)

          選擇語(yǔ)句case中,沒(méi)有使用允許的值。如(byte、int、short、char)等

          (7) Math class being an option for immutable classes !! (totally wrong!)

          Math類(lèi)作為不可改變類(lèi)。(完全錯(cuò)誤)

          (8) instanceOf is not same as instanceof.

          instanceOf不是instanceof。

          (9) Private constructors. (legal)

          私有的Constructor。(合法)

          (10)An assignment statement which looks like a comparison.

          一個(gè)賦值語(yǔ)句看起來(lái)像比較語(yǔ)句。

          比如說(shuō)if(a=true),和if(a==true)。對(duì)于這種題眼睛亮一點(diǎn)。

          (11)System.exit() in try-catch-finally blocks. (finally不會(huì)執(zhí)行)

          在try-catch-final塊中的退出語(yǔ)句。(finally不會(huì)執(zhí)行)

          (12)Order of try-catch-finally blocks matters. (若順序錯(cuò)的話(huà): error: No try before catch)

          try-catch-final塊的順序問(wèn)題。

          (13)main() can be declared final. (OK)

          main()方法可以聲明為final。

          (14) -0.0 == 0.0 is true.

          (15)A class without abstract methods can still be declared abstract.

          沒(méi)有抽象方法的類(lèi),仍然可以定義為抽象類(lèi)。

        【Sun認(rèn)證Java程序員SCJP考題常見(jiàn)陷阱】相關(guān)文章:

        Sun認(rèn)證Java程序員(SCJP)考試科目介紹03-19

        合格Sun認(rèn)證Java程序員(SCJP)具備的能力03-19

        Sun認(rèn)證Java程序員(SCJP)考試科目的區(qū)別03-19

        sun認(rèn)證java程序員須知Java日志框架03-30

        SUN JAVA認(rèn)證介紹12-18

        sun java認(rèn)證考試介紹03-19

        Sun Java認(rèn)證考試科目03-19

        sun java認(rèn)證報(bào)考指南03-08

        怎樣獲得Sun Java認(rèn)證03-18

        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码
      3. <sub id="h4knl"><ol id="h4knl"></ol></sub>
        <sup id="h4knl"></sup>
          <sub id="h4knl"></sub>

          <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
          1. <strong id="h4knl"></strong>

          2. 午夜精品一区二区三区免费视频 | 亚洲精品福利aV在线播放 | 日韩中文无线码在线视频观看 | 午夜国产在线观看 | 五月婷婷色色色热 | 亚洲中文乱码免费一区二区三区 |