Chapter 5This is a featured page

IF
考試重點:注意IF結構、判斷部份混用短路、判斷式一定要是boolean值(e.g. boolean b = true 雖然不好,但是這合法)

SWITCH
考試重點:continue和break用法、fall through、default不一定要放在最後面

for迴圈
考試重點:提早結束迴圈可以用break,return,System.exit(),加強版for迴圈特別設計簡化陣列或集合,會走過所有元素,要注意宣告變數的型別

Try and Catch
考試重點:try後面至少要有catch或finally、catch要一個接一個,中間不可以夾雜其他程式碼、error不用丟,也不用處理、呼叫的函式丟出exception則呼叫該函式的函式也要丟出或處理該exception

Assertion
考試重點:如何啟動和關閉assertion、assert在1.3和1.4以上使用作識別字或關鍵字的差異



swangs
swangs
Latest page update: made by swangs , Aug 29 2007, 3:19 AM EDT (about this update About This Update swangs Edited by swangs

18 words added

view changes

- complete history)
Keyword tags: None
More Info: links to this page

Anonymous  (Get credit for your thread)


There are no threads for this page.  Be the first to start a new thread.