首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

Class 种使用疑惑

2013-08-06 
Class 类使用疑惑public Constructor[] getConstructors()throws SecurityException这个方法明明有异常抛

Class 类使用疑惑


public Constructor[] getConstructors()
                              throws SecurityException

这个方法明明有异常抛出
为什么在使用的时候可以不处理呢?


并不是所有异常都需要捕获,比如RuntimeException以及其子类!

热点排行