final keyword in java

Published: 29 May 2024
on channel: JavaMantra
31
3

It is used to provide some kind of restriction to classes, method & variable in java programs.
If we declare a class as “final”.
 Inheritance Not allowed.
2 . If we declare a method as final.
 we can’t override that method.
3 . If we declare a variable as final.
 we can’t re-assign that variable.


On this page of the site you can watch the video online final keyword in java with a duration of hours minute second in good quality, which was uploaded by the user JavaMantra 29 May 2024, share the link with friends and acquaintances, this video has already been watched 31 times on youtube and it was liked by 3 viewers. Enjoy your viewing!