胡一搏 发表于 2013-8-16 16:19:20

[Oracle interview]If I write return at the end of the try block, will the finally block still execute?

费庆龄 发表于 2013-8-16 16:24:57

Yes. evenif you write return as the last statement in the try block and no exceptionoccurs, the finally block will execute. The finally block will execute andthen the control return.
页: [1]
查看完整版本: [Oracle interview]If I write return at the end of the try block, will the finally block still execute?