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
How to deploy Jar, War files in J2EE?
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..
What must a class do to implement an interface?
What is the purpose of the wait(), notify(), and notifyall() methods?
What is JTS?
Should synchronization primitives be used on bean methods?
What is Remote Server?
What are the different class loaders used by jvm?
Brief description about local interfaces?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
What are the design considerations while making a choice between using interface and abstract class?
Which container method is used to cause a container to be laid out and redisplayed?
Why are some of the class and element names counter-intuitive?
Is there a guarantee of uniqueness for entity beans?
What is the difference between a menuitem and a checkboxmenuitem?