Question
How can we make the object immutable?
Answer
By making it a final class and making all members as private with those being initialized through constructor.
How can we make the object immutable?
By making it a final class and making all members as private with those being initialized through constructor.