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 个关于本帖的回复 最后回复于 2013-8-16 16:14