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 the difference between system.out ,system.err and system.in?

0 Answers  


Which are the different segments of memory?

0 Answers  


What are the steps involved in developing an RMI object?

1 Answers  


What are the types of scaling?

0 Answers  


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

0 Answers  






When a thread blocks on i/o, what state does it enter?

0 Answers  


What is the purpose of the finally clause of a try-catch-finally statement?

0 Answers  


What is UniCastRemoteObject and what is its use in RMI?

6 Answers  


Define the remote interface?

1 Answers  


what do u mean by java bean??

2 Answers   ADP,


What is jboss?

0 Answers  


Do we need to override service() method

0 Answers  


Categories