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 is starvation?
os is developed in c no java is more secured then c na why dont the os developed is developed using java
What is passed by reference and pass by value ?
What is the difference between import java.util.date and java .util?
What is hash in java?
What is arrays aslist in java?
Can you access non static variable in static context?
Why is multiple inheritance not supported in java?
How do you empty a list in java?
What is the base class in java from which all classes are derived?
What is instance example?
design an lru cache in java?
Explain an algorithm to find depth of a binary tree.
Can we override constructor?
Can we create an object of static class in java?