研发埠

标题: [Oracle interview]What are the different ways to handle exceptions? [打印本页]

作者: 姜青林    时间: 2013-8-16 16:09
标题: [Oracle interview]What are the different ways to handle exceptions?

作者: 胡一搏    时间: 2013-8-16 16:14
There are twoways to handle exceptions,1. By wrapping the desired code in a try blockfollowed by a catch block to catch the exceptions. and2. List the desired exceptions in the throwsclause of the method and let the caller of the method hadle those exceptions.




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