姜青林 发表于 2013-8-16 16:09:12

[Oracle interview]What are the different ways to handle exceptions?

胡一搏 发表于 2013-8-16 16:14:54

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.
页: [1]
查看完整版本: [Oracle interview]What are the different ways to handle exceptions?