标题: [Oracle interview]If I write return at the end of the try block, will the finally block still execute? [打印本页] 作者: 胡一搏 时间: 2013-8-16 16:19 标题: [Oracle interview]If I write return at the end of the try block, will the finally block still execute? 作者: 费庆龄 时间: 2013-8-16 16:24
Yes. even if you write return as the last statement in the try block and no exception occurs, the finally block will execute. The finally block will execute and then the control return.