Java异常处理策略研究  被引量:6

Study of Java Exception Handling Strategy

在线阅读下载全文

作  者:陈红跃[1] 张宏军 陈刚[1] 

机构地区:[1]解放军理工大学工程兵工程学院,江苏南京210007

出  处:《计算机技术与发展》2012年第7期9-12,共4页Computer Technology and Development

基  金:国家自然科学基金资助项目(70971137)

摘  要:异常处理机制是程序设计语言的重要标志之一,在程序设计过程中用来处理程序运行中的异常。传统的程序设计语言里异常处理较为繁杂。Java是一种面向对象的程序设计语言,且引入了异常处理机制。合理完备的异常处理可以增强程序运行的可靠性、提高软件的健壮性,可以较为快速地确定错误的位置。文章分析了Java异常处理的逻辑,阐述了异常类、异常处理机制以及异常处理方法,提出了异常处理的一些策略。综合运用这些策略可以使编程人员编写出更加简洁、高效的程序代码。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.

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

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象