You are on page 1of 1

Core JAVA Assignments: - Day: 12

1. Create a program to understand the use try, catch and


finally keywords.
2. Define a Calculator interface and create a
UserCalculator class
which implements calculator interface.
Handle an ArithmeticException Divide By Zero in
division method of UserCalculator.
3. Create a program that takes user name as input from
user, if user enters any invalid character (0-9!@#$
%^7*()) in his/her name throw an user defined checked
exception InvalidCharacterFoundException, and
create a block of codes that will handle the exception.

You might also like