Answer Posted / sumitpalsingh
Final Keyword has limited Scope because it is like a constant keyword.
If we declare a class As "final" then we can not extends this class.so we can not get benifit of inheritance class.
If we declare a method as "final" then we can not override this method.Becoz metgod overriding is not possible with final keyword.
If we declare a variable as "final" then we can not change the value of final varible .because these are the constatnt variable having fixed value if we use "final" keyword with a variable.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why won’t the jvm terminate when I close all the application windows?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
which book is better for jdbc ,servlets and jsp
What you mean by COM and DCOM?
Can constructors be synchronized in java?
what are memory considerations of jsp compares to other web components?
Why use a datasource when you can directly specify a connection details?
What do you know about seam?
What is the purpose of the wait(), notify(), and notifyall() methods?
Brief description about local interfaces?
Which are the different segments of memory?
Is there a guarantee of uniqueness for entity beans?
What is the purpose of the notifyall() method?
What is the diffrence between a local-tx-datasource and a xa-datasource?
What is bean? Where can it be used?