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
Is java call by reference?
What is your platform’s default character encoding?
Can we define private and protected modifiers for variables in interfaces?
What is main method?
What is the difference between && and & in java?
What is lazy programming?
How do you find the independent variable?
explain the concept of virtual method invocation in polymorphism in detail?
Define Multiprogramming and Multiprocessing in java.
How to create an interface?
Give us the name of the list layoutmanagers in java?
What is difference between static and abstract class?
How many bytes are there?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
Explain illegalmonitorstateexception and when it will be thrown?