Java Assignment 4
Java Assignment 4
E xception
1) Write a program to demonstrate the use of try, catch, finally throw and
throws keywords and demonstrate the following points in the program.
a) Multiple catch blocks.
b) try-catch-finally combination.
c) try-finally combination.
d) Nested try blocks
2). Write a java application for checking the bank account funds using
InsufficientFundsException using user defined exception using throw keword
and create a class for CheckingAccount with methods withdraw() and
getBalance() Among these withdraw() should throw an
InsufficientFundsException.
Collection
Player name
total run
no of wicket
no of matches
country
no-of-century
Category = null
name
price
author name
isbn no;
publication