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 are different types of layout managers in java.awt package?

3 Answers   Android, CA,


What is difference between object state and behavior?

0 Answers  


Can you control when passivation occurs?

0 Answers  


What is Introspection?

2 Answers  


Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)

2 Answers   Wipro,






Is the infobus client side only?

0 Answers  


How can I avoid validating a form before data is entered?

0 Answers  


What value does read() return when it has reached the end of a file?

0 Answers  


Where does the session Object stores? If 100 users are connecting to the server. How does it recognize which session belongs to which user?

5 Answers   HCL, Mobillo Venture,


What modifiers may be used with an inner class that is a member of an outer class?

0 Answers  


Why threads will block on I/O?

2 Answers  


Is there a guarantee of uniqueness for entity beans?

0 Answers  


Categories