I want to clear out my confusion that this statement can be TRUE for the case of �Siblings of the Inheritance Tree�.
For example, I am creating a Banking application. And I want to have a
BaseException, the mother of all exceptions of my application. The
BaseException extends the
Java Exception class and have 2 direct subclasses,
DBException and
TransactionException. And
TransactionException have 1 subclass called
DepositException.
And a simple Deposit Transaction which involves a DB lookup and an update to the account:
Being aware that
TransactionException and
DBException are both "siblings" of the inheritance tree, can I interchange their catch block order:
Is this legal?
[ June 02, 2008: Message edited by: Denise Saulon ]
[ June 02, 2008: Message edited by: Denise Saulon ]
[ June 02, 2008: Message edited by: Denise Saulon ]