摘要
目的通过Java异常处理的特点和机制,处理程序中出现的错误。方法根据Java异常捕获、异常抛出的要求,分析异常处理的方法。结果结合实际,提出了如何有效地抛出异常和捕获异常的实用策略。结论异常处理提高了程序的安全性和健壮性。
Aim Through the characteristics and mechanism of exception disposal in Java, to dispose the errors in program, Methods The methods of exception disposal were analyzed by basing on the requirement of exception catch and exception throw, Results According to the practice, the strategies how to throw and catch exception effectively were proposed. Conclusion The safety and robustness of program were improved by the exceptional disposals.
出处
《宝鸡文理学院学报(自然科学版)》
CAS
2007年第2期156-158,共3页
Journal of Baoji University of Arts and Sciences(Natural Science Edition)
关键词
异常类
抛出异常
捕获异常
JAVA语言
exception class
throw exception
catch exception
Java language