15-06-2012, 12:46 PM
Exception Handling
Create an exception class called Insufficient Funds Exception with variable amount.
Create a class checking Account with variables balance and acc number and contains deposit and withdraw methods that throws an insufficient funds exceptions.
Create a class bank invoking deposit() and withdraw() methods of checking account. Use try and catch blocks to handle the Exceptions.