胡一搏 发表于 2013-8-16 16:18:32

[Oracle interview]Is it necessary that each try block must be followed by a catch block?

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

It is notnecessary that each try block must be followed by a catch block. It should befollowed by either a catch block OR a finally block. And whatever exceptionsare likely to be thrown should be declared in the throws clause of themethod.
页: [1]
查看完整版本: [Oracle interview]Is it necessary that each try block must be followed by a catch block?