Question
What is final keyword?
Answer
We can use final keyword with class, method and variable as well.
⢠If we use final keyword with a class then we cannot inherit it.
⢠If we use final keyword with a method, then we cannot override it.
⢠If we use final keyword with a variable, it behaves like a constant. That means its value cannot be changed.
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.