Pergunta de entrevista da empresa Capgemini

how final keyword is used in different ways

Resposta da entrevista

Sigiloso

12 de dez. de 2020

We can declare either a field or method or class as final Once a field is made final and assign a value we cannot Change it and the initializaion has to be done at the time of declaration. Once a method is declare final it cannot be overridden in its Sub Class Once a Class is made final it cannot be extended.