摘要
程序设计语言的重要标志就是异常处理机制,用来对程序运行在程序设计过程中出现的异常情况进行处理。异常处理在传统的程序设计语言里十分的复杂,Java不仅将异常处理机制引进来,作为程序设计语言,它还面向对象。异常处理如果做到合理完备,不仅可以使软件的健壮性以及程序运行的可靠性大为增加,还可以对错误的位置进行快速的确定。该文对Java异常处理的逻辑进行了分析和探讨,并对异常处理的方法、异常处理机制以及异常种类进行了阐述,有针对性的提出了一些策略来应对异常处理。
programming language is an important symbol of exception handling mechanism, used to run the program design process handling abnormal situations arise. Exception handling in a traditional programming language is very complex, Java exception handling mechanism will not only bring in as a programming language, it object-oriented. Exception Handling If done reasonably complete, the software can not only make the robustness and reliability of the program is running greatly increased, but also on the wrong location for quick OK. In this paper, Java exception handling logic are analyzed and discussed, and exception handling, exception handling and exception types are described, made a number of targeted strategies to deal with exception handling.
出处
《电脑知识与技术(过刊)》
2013年第12X期7970-7972,共3页
Computer Knowledge and Technology
关键词
JAVA语言
异常处理
分析
Java language
exception handling
analysis