scjp題目解析(十四)

 public class Eddy {
 public static void main (String args []) {
  method();
 }
 static void method()
 {
 try{
 System.out.println("Hello");
 }
 finally{
 System.out.println("good-bye");
 }
   }
 }
這種題目考查的是對try.{}...catch{}...finally{}  看到這三個英文就應該知道是代表什麼意思 了吧。試圖{}..捕捉(獲){}...最後{}

Therefore..this issue the result of:

Hello good-byte

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章