-4
3
| |
add comment |
closed as too broad by kcoppock, Luiggi Mendoza, EJP, Radim Köhler,Tushar Gupta Sep 8 at 5:50
There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.
10
| Final Variable:final variable means we can't change its valueFinal method:
If we declare a method as
final , we can't override the method.Final Class:
If we declare a class as
final , that means we can't extend the class or in other words we can't make a sub-class of it
Example of final variable:
Example of final method:
Example of final class:
| |||
add comment |
final
. Let me make it easier for you, open google and typesignificance of the keyword final in java
. – dharam Sep 8 at 5:34finally
andfinalize
to the interview question. I assume you know what the difference between a variable, a method and a class is. – Peter Lawrey Sep 8 at 7:02