资 源 简 介
本文分别深入讨论了C++与Java的异常处理机制。比较了C++与Java的异常匹配处理,异常类继承体系与异常处理代码的区别,并且讨论了异常对象的生存周期与存储方式。最后,在其基础上构想了异常处理机制的发展方向。 -In this paper, in-depth discussion of the C++ and Java exception handling mechanism. Comparison of C++ and Java exceptions match the handling, exception class inheritance system and the difference between exception handling code, and discussed the life cycle with the exception object is stored. Finally, based on the idea of exception handling mechanism of development direction.