what is the Scope of Final Keyword in Java?
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 |
What are different types of layout managers in java.awt package?
What is difference between object state and behavior?
Can you control when passivation occurs?
What is Introspection?
Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)
Is the infobus client side only?
How can I avoid validating a form before data is entered?
What value does read() return when it has reached the end of a file?
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?
Why threads will block on I/O?
Is there a guarantee of uniqueness for entity beans?