Question: a) Write a try-catch block. In try block, do the following thing: if the balance is less than 100, throw an InsufficientFund exception; else print
a) Write a try-catch block. In try block, do the following thing: if the balance is less than 100, throw an InsufficientFund exception; else print out the message saying that there are enough money in the account. In catch block, simply print out the message saying that there is not enough money in the account.
b)
Write a template function template
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
