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 rmic?

4 Answers  


Why is string immutable in java?

0 Answers  


In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

0 Answers  


To identify IDL language what mapping mechanism is used?

0 Answers  


Suppose there are 3 combo box. SELECT COUNTRY SELECT STATE SELECT CITY if i select any country from country conutrylistbox values in the state will get automatically inserted with database values>> THEN on selection of state city will be inserted in city combo box If you can help then please Help me...

2 Answers   HCL,






What are the methods used for inter-thread communication? and in what class these methods are defined?

2 Answers  


Explain Life cycle of Servlet Filter.

2 Answers   InfoBrain, ITC Infotech,


Explain about thread synchronization inside a monitor?

0 Answers   Saksoft,


Explain the methods of Naming class, rebind( ) and lookup()?

1 Answers  


diff between jsp include directive and jsp action include?

2 Answers   SolutionNET,


Why use a datasource when you can directly specify a connection details?

0 Answers  


Why a component architecture for the java platform?

0 Answers  


Categories