Question: A method named withdraw in the CheckingAccount class throws a custom exception named OverdrawnException. You want to catch the exception in order to log the
A method named withdraw in the CheckingAccount class throws a custom exception named OverdrawnException. You want to catch the exception in order to log the error, but you also want to pass the exception on to the caller. Fill in the blank to complete the code below to do that. try t myAccount withdraw(100.29 System.out.printinCoe.gethessageO> y catch (OverdrawnException oe)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
