Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

difference between applicationserver and webserver

2 Answers   SolutionNET,


explain session tracking. why we used it

3 Answers   Lionbridge,


What is the argument type of a programs main() method?

0 Answers  


Is it possible to stop the execution of a method before completion in a sessionbean?

0 Answers  


In howmany ways a thread can be created?

3 Answers   HCL,


What is ripple effect?

0 Answers  


When you will synchronize your code?

2 Answers  


What are the difference between RMI and CORBA?

0 Answers  


What is diffennce between AWT & SWING?

4 Answers  


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

1 Answers  


what is the use of Object Factories?

1 Answers  


Explain the purposes of methods wait(), notify(), notifyAll ()?

2 Answers  


Categories