you will create a simple SavingsAccount class that includes aconstructor with an exception handler, private and staticvariables, two calculation methods, a set method, and a testharness. harness. Specifications • Create a class calledSavingsAccount. • Include an exception in the constructor to testfor balances before zero (IllegalArgumentException). • Use a staticvariable annualInterestRate to store the annual interest rate forall account holders. • Each object of the class contains a privateinstance variable savingsBalance indicating the amount the savercurrently has on deposit. • Provide method calculateMonthlyInterestto calculate the monthly interest by multiplying the savingsBalanceby annualInterestRate divided by 12—this interest should be addedto savingsBalance.
PayPal Gateway not configured
PayPal Gateway not configured