Can we make an object final i.e immutable using final keyword?
Question
Can we make an object final i.e immutable using final keyword?
Answer
No, only object reference can be made final. This means that the reference cannot be reassigned.
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.