finally块的问题(finally block does not complete normally)

当finall块中包含return语句时,Eclipse会给出警告“finally block does not complete normally”,缘由分析以下:.net 一、无论try块、catch块中是否有return语句,finally块都会执行。 二、finally块中的return语句会覆盖前面的return语句(try块、catch块中的return语句),因此若是finally块
相关文章
相关标签/搜索