Java code please. Please make sure that output are the same.Thank you.
10. Exception project This assignment assumes you have completedProgramming Challenge 1 of Chapter 10 (Employee andProductionWorker Classes).
Modify the Employee and ProductionWorker classes so they throwexceptions when the following errors occur:
• The Employee class should throw an exception namedInvalidEmployeeNumber when it receives an invalid employeenumber.
• The ProductionWorker class should throw an exception namedInvalidShift when it receives an invalid shift.
• The ProductionWorker class should throw an exception namedInvalidPayRate when it receives a negative number for the hourlypay rate. Write a test program that demonstrates how each of theseexception conditions works.
File name
PayPal Gateway not configured
PayPal Gateway not configured