该截图取自书本,《深入理解java虚拟机》 可见return x会把x保存到returnValue中,然后finally中的x=3并不会改变returnValue的值,然后代码块结束后将returnValue返回。