7.1 异常.......................................................... 113 7.2 管理异常.................................................. 115 7.2.1 异常一致性检测.............................. 115 7.2.2 保护代码和捕获异常...................... 116 7.2.3 finally 子句 ...................................... 118 7.3 声明可能引发异常的方法...................... 120 7.3.1 throws 子句...................................... 120 7.3.2 应引发哪些异常.............................. 121 7.3.3 传递异常 ..........................................121 7.3.4 throws 和继承...............................122 7.4 创建并引发自己的异常 ..........................122 7.4.1 引发异常 ..........................................123 7.4.2 创建自己的异常 ..............................123 7.4.3 结合使用 throws、try 和 throw.......123 7.5 在什么情况下不使用异常.......................124 7.6 线程..........................................................125 7.6.1 编写线程化程序 ..............................125 7.6.2 线程化应用程序 ..............................126 7.6.3 终止线程 ..........................................129 7.7 总结..........................................................130 7.8 问与答......................................................130 7.9 小测验......................................................131 7.9.1 问题 ..................................................131 7.9.2 答案 ..................................................131 7.10 认证练习 ................................................131 7.11 练习 ........................................................132
标签:..............................,7.3,131,线程,7.4,异常 From: https://www.cnblogs.com/cnetsa/p/17112415.html