[Oracle interview]What are the different ways to handle exceptions?
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]