研发埠

标题: [Oracle interview]Is it necessary that each try block must be followed by a catch block? [打印本页]

作者: 胡一搏    时间: 2013-8-16 16:18
标题: [Oracle interview]Is it necessary that each try block must be followed by a catch block?

作者: 费庆龄    时间: 2013-8-16 16:24
It is not  necessary that each try block must be followed by a catch block. It should be  followed by either a catch block OR a finally block. And whatever exceptions  are likely to be thrown should be declared in the throws clause of the  method.




欢迎光临 研发埠 (http://bbs.yanfabu.com/) Powered by Discuz! X3.2