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

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,


Hi frnds ,iam new to java and j2ee ,my requirement is using java or any j2eetech how to lock an user when he enter wrong credentials(uname&password) more than 3 times.take the username and passowrd in a bean no need to conned Db kindly provide me sample application code or and ideas or links or tutorials plzzzzz urgent for me thanks in advance...

2 Answers   NSN,


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

2 Answers   Wipro,


Is there a guarantee of uniqueness for entity beans?

0 Answers  


What state does a thread enter when it terminates its processing?

0 Answers  


Can a thread be a member of another thread?

2 Answers  


what are RemoteObjects?

0 Answers   Wipro,


What is JNI?

1 Answers   Google, TCS,


Define the remote object implementation?

0 Answers  


What’s jboss jbpm?

0 Answers  


advantage of thread?

3 Answers   HCL,


how can u cal servlet from java?

7 Answers  


Categories