Question: Custom Exception for Overdue Book Return Write a custom exception OverdueBookException that extends Exception . Create a class Library with a method returnBook ( int
Custom Exception for Overdue Book Return
Write a custom exceptionOverdueBookExceptionthat extendsException Create a classLibrarywith a methodreturnBookint daysLate If a book is returned more than days late, throw the custom exception. Handle the exception in themainmethod
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
