?? exceptionmethods.java
字號:
public class ExceptionMethods
{ public static void main(String args[ ])
{ try
{ throw new Exception("Here's my Exception");
}
catch(Exception e)
{ System.out.println("Caught Exception");
System.out.println("e.getMessage( ):"+e.getMessage( ));
System.out.println("e.toString( ):"+e.toString( ));
System.out.println("e.printStackTrace( ):");
e.printStackTrace( );
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -