Answer Posted / jayant gope
Final is keyword that can be used with class, method and also with the variable.
Class: When final is used with the class, it means that class cannot be further extended or inherited by the other classes. So, final keyword restricts class from being inherited.
Method: When final is used with the method, this means that method cannot be overridden.
Variable: When final is used with the variable, it makes the variable constant i.e. the variable cannot be further modified.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Why java is not 100% object-oriented?
What is += mean in java?
Which package has light weight components in java programming?
Is arraylist zero based?
what do you mean by marker interface in java?
What does 0 mean in boolean?
Give few examples of final classes defined in Java API?
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?
What is double in java?
What are some alternatives to inheritance?
Explain listiterator and methods in listiterator?
Which sorting algorithm is in place?
What is bigger kb or mb?
What are the two ways to create a thread?
What does int [] mean in java?