RuntimeException
1、NullPointException 空指針異常
2、ClassNotFoundException 指定的類不存在
3、ArrayIndexOutOfBoundsException 數組下標越界
4、StringIndexOutOfBoundsException 字符串索引越界
5、ClassCastException 類轉換異常
6、ArithmeticException 數學運算異常
7、illegalArgumentException 傳遞非法參數異常
8、illegalStateEXception 非法狀態異常
AndroidRuntime
1、 ActivityNotFoudException 界面沒找到
當我們在運行錯誤時如果在日誌裏面有這些錯誤可以根據相應的錯誤來修改程序