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
What modifiers are allowed for methods in an interface?
What is meant by method?
What is super keyword explain with example?
State the significance of public, private, protected class?
What is a method in programming?
What are 4 pillers of object orinted programming?
How many digits can a float hold?
If a method is declared as protected, where may the method be accessed in java programming?
Explain the polymorphism principle?
Can private members of a base class are inheritable justify?
What is static and final keyword in java?
What is formatted output?
What is a superclass?
What is a top level class in java?
What if static is removed from main method?