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.
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.