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
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What are the difference between RMI and CORBA?
What is a clone?
What are the design considerations while making a choice between using interface and abstract class?
What is scalable, portability in the view of J2EE?
What is a session? Can you share a session object between different theads?
which book is better for jdbc ,servlets and jsp
What is the relation between the infobus and rmi?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
Can I run seam outside of jboss as?
whats is mean by tiles in struts
How to determine SGA site?
What is the map interface?
Which containers use a border layout as their default layout?
What is threadfactory?