3.Do not suppress or ignore exceptions
nWhen a method from an API throws a checked
exception, it is
trying to tell you that you should take some counter action.
n
4.Do not catch top-level exceptions
nUnchecked exceptions inherit from the
RuntimeException class,
which in turn inherits from Exception. By catching the Exception class, you are also catching
RuntimeException
as in the following code:
ntry{
n ..
n} catch( Exception ex ){ }
n