首页 | 本学科首页   官方微博 | 高级检索  
     

Java异常处理策略研究
引用本文:陈红跃,张宏军,陈刚. Java异常处理策略研究[J]. 微机发展, 2012, 0(7): 9-12
作者姓名:陈红跃  张宏军  陈刚
作者单位:解放军理工大学工程兵工程学院,江苏南京210007
基金项目:国家自然科学基金资助项目(70971137)
摘    要:异常处理机制是程序设计语言的重要标志之一,在程序设计过程中用来处理程序运行中的异常。传统的程序设计语言里异常处理较为繁杂。Java是一种面向对象的程序设计语言,且引入了异常处理机制。合理完备的异常处理可以增强程序运行的可靠性、提高软件的健壮性,可以较为快速地确定错误的位置。文章分析了Java异常处理的逻辑,阐述了异常类、异常处理机制以及异常处理方法,提出了异常处理的一些策略。综合运用这些策略可以使编程人员编写出更加简洁、高效的程序代码。

关 键 词:Java语言  异常处理机制  异常类  异常转译

Study of Java Exception Handling Strategy
CHEN Hong-yue,ZHANG Hong-jun,CHEN Gang. Study of Java Exception Handling Strategy[J]. Microcomputer Development, 2012, 0(7): 9-12
Authors:CHEN Hong-yue  ZHANG Hong-jun  CHEN Gang
Affiliation:( Engineering Institute of Engineering Corps, PLA University of Science & Technology, Nanjing 210007, China)
Abstract:Exception handling mechanism is an important indicator of programming languages, people use it in the program design process to deal with the exception. Exception handling in the traditional programming language is complex. Java is an object-oriented programming language,it introduces exception handling mechanism. A reasonable use of exception handling can enhance the reliability of the program and improve the software robustness and determine the location of the error more quickly. It describes the logic of Java ex- ception handling, elaborates exception class, exception handling mechanism and the method of exception handling, proposes several strat- egies for exception handling. Integrated use of these strategies can make programmers write more concise and efficient code.
Keywords:Java language  exception handling mechanism  exception class  exception translation
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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