Effective Java 2 读书笔记 第9章 异常

第57条:只针对异常的情况才使用异常 异常应该只用于异常的情况下,不该用于正常的控制流 // Horrible abuse of exceptions. Don't ever do this! try { int i = 0; while(true) range[i++].climb(); } catch(ArrayIndexOutOfBoundsException e) {
相关文章
相关标签/搜索