Styrow.dev
Question 150 of 247
Java Topic: General medium

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.