Exercise Number: 1
Exercise 1: Final Variable
Scenario: You are managing a fixed deposit account where the interest rate is fixed and cannot be changed.
Task:
- Create a class
FixedDepositAccount
. - Declare a final variable
interestRate
with a value of 5%. - Attempt to change the
interestRate
and observe the error. - Print the
interestRate
.