(1)异常-catch
下面看一下字节码里面怎么做异常的处理


(2)异常-多个catch

astore_2:就是把异常对象的地址存到局部变量表2号曹位上


(3)异常-multicatch



(4)异常-finally



(5)finally-面试题1

返回20:



(6)finally-面试题2

返回10


我们发现在try中return了,在finally里又对这个变量做了变化,其实它是不会影响返回结果的,因为他在return之前做了一个暂存,我们发现只要finally中只有不return是没有问题的