22.5k views
0 votes
Define the keywords final and static.

1 Answer

2 votes

Answer:

Final Keyword:-It is defined in the class that has the property of non-inheritance and can declare the constant variables. It has no re-initialization function.At the time of the final declaration,it is required that the variable should be initialized.

Static Keyword:-It is used in a particular class for defining it's member so that it can used for any object of the class.Static method in a class can call this keyword. It can has the property of being re-initialized.

User Pushkraj Lanjekar
by
7.8k points

No related questions found