Throwable实体类继承体系

本文链接: https://blog.csdn.net/Kesa_Wu/article/details/102696614

Throwable是一个实体类(定义成类的好处是方便异常处理),实现了Serializable接口

									
								(I)  Serializable
									       \
							Throwable----Throwable----Throwable----------------------这是一个实体类
								\                        \
					       Exception         		      Error(非检查异常)
			          程序可处理的异常         		       程序无法处理的错误
				      \             \           			\
RuntimeException(非检查异常)	     \                       |-- OutOfMemoryError
|									  \                      |-- StackOverflowError
|--	NullPointerException			   \                						
|--	ArrayIndexOutOfBoundsException	    \                  									
|--	ArithmeticException				     \                 									
|--	NumberFormatException		          \
                                           \_____________________检查异常____
                                           |      |   		                 | 
                                           |      |				             | 
                                           |      |-- IOException 			 |
                                           |      |-- EOFException 			 |
                                           |      |-- FileNotFoundException  |
                                           |      |-- SQLException			 |
									       |                                 |
									       |_________________________________|

猜你喜欢

转载自blog.csdn.net/Kesa_Wu/article/details/102696614