激情欧美日韩一区二区,浪货撅高贱屁股求主人调教视频,精品无码成人片一区二区98,国产高清av在线播放,色翁荡息又大又硬又粗视频

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

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

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

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

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

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

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

  在main(String[] args)方法內調用一個(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)

  內部類(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)。(完全錯誤)

  (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)。對于這種題眼睛亮一點(diǎn)。

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

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

  (12)Order of try-catch-finally blocks matters. (若順序錯的話(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認證Java程序員SCJP考題常見(jiàn)陷阱】相關(guān)文章:

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

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

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

sun認證java程序員須知Java日志框架03-30

SUN JAVA認證介紹12-18

sun java認證考試介紹03-19

Sun Java認證考試科目03-19

sun java認證報考指南03-08

怎樣獲得Sun Java認證03-18

激情欧美日韩一区二区,浪货撅高贱屁股求主人调教视频,精品无码成人片一区二区98,国产高清av在线播放,色翁荡息又大又硬又粗视频