首页 | 官方网站   微博 | 高级检索  
     

Java异常处理与自定义异常
引用本文:笪林梅.Java异常处理与自定义异常[J].数字社区&智能家居,2010(5):1123-1125.
作者姓名:笪林梅
作者单位:江苏财经职业技术学院,江苏淮安223003
摘    要:Java程序运行期间发生的错误称为异常.异常产生后,应有相应的异常处理机制来捕获异常或抛出异常。JDK平台为我们提供了丰富和完整的异常类,通过它们来处理程序运行中的错误,防止错误对程序造成影响,确保程序能够安全运行。当这些异常类不能捕获实际应用中的异常时.就需要用户自定义异常。异常处理和用户自定义异常的正确与灵活运用:将有效地增强程序的交互性。增加程序的完整性。

关 键 词:异常  捕获  抛出  异常类  自定义异常

Exception Handling and User-defined Exception in JAVA Programming
DA Lin-mei.Exception Handling and User-defined Exception in JAVA Programming[J].Digital Community & Smart Home,2010(5):1123-1125.
Authors:DA Lin-mei
Affiliation:Jiangsu Vocational and Technical College of Finance & Economics;Huai'an 223003;China
Abstract:The error occured during the Java program names exception. When it happens,there should be a corresponding exception handling mechanism to capture the exception or throw out it. JDK platform provides us with a rich and complete exception classes,through which we can deal with the error during the running of programs,in order to prevent the effect made by the error. Then the program can run safely. When these exception classes can not capture the exception in the practical application,it needs us to define t...
Keywords:exception  capture the exception  throw out the exception  exception classes  user-defined exception  
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号