Java中finally块报finally block does not complete normally

1、出现问题 当finall块中包含return语句时,Eclipse会给出警告"finally block does not complete normally"函数 2、分析缘由 1 finally块中的return语句会覆盖try块、catch块中的return语句 2 若是finally块中包含了return语句,即便前面的catch块从新抛出了异常,则调用该方法的语句也不会得到catch
相关文章
相关标签/搜索