Question: Save the project as A10_Ex1.java . JAVA****You must create - InvalidDayExcep and InvalidMonthExcep classes in addition to the test driver program. Use try/catch in your
Save the project as A10_Ex1.java.
JAVA****You must create - InvalidDayExcep and InvalidMonthExcep classes in addition to the test driver program. Use try/catch in your code.
OUTPUT shown below.....


Sample Run 3: leap year Enter birth year: 1988 Enter month number 2 Enter birth day: 29 Birth Day: February 29, 1988 Enter birth year: 2016 Enter month number 32 The value of day must be between 1 and 12 Enter month number-1 The value of day must be between 1 and 12 Enter month number: 2 Enter birth day: 30 Day must be between 1 and 29. Enter birth day: -1 Day must be between 1 and 29. Enter birth day: 29 Birth Day: February 29, 2016 BUILD SUCCESSFUL (total time: 37 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
