Question: Integer birthYear is read from input. Use multiple exception handlers to: Catch an InputMismatchException and output Input type error: Integer required when birthYear is not

Integer birthYear is read from input. Use multiple exception handlers to:
Catch an InputMismatchException and output "Input type error: Integer required" when birthYear is not an integer.
Catch an Exception and output the Exception's message when birthYear is less than 1970.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!