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 is the difference between system.out ,system.err and system.in?
Which are the different segments of memory?
What are the steps involved in developing an RMI object?
What are the types of scaling?
What classes of exceptions may be caught by a catch clause?
When a thread blocks on i/o, what state does it enter?
What is the purpose of the finally clause of a try-catch-finally statement?
What is UniCastRemoteObject and what is its use in RMI?
Define the remote interface?
what do u mean by java bean??
What is jboss?
Do we need to override service() method