what is the Scope of Final Keyword in Java?



what is the Scope of Final Keyword in Java?..

Answer / 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

More Advanced Java Interview Questions

What is prototype?

0 Answers  


What you mean by COM and DCOM?

0 Answers  


Is 'synchronised' a modifier?

2 Answers   NIIT,


Which class is the immediate superclass of the menucomponent class?

0 Answers  


Is the infobus client side only?

0 Answers  






What are synchronized methods and synchronized statements?

2 Answers   Adobe,


Can I use multiple html form elements with the same name?

0 Answers  


What classes of exceptions may be caught by a catch clause?

0 Answers  


How many layers are there in RMI and what are they?

1 Answers  


what is JTS?

1 Answers  


What is the priority of Garbage collector thread?

3 Answers  


when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??

0 Answers   Ducat,


Categories