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

Define prototype?

0 Answers  


Do we need to override service() method

0 Answers  


Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature.

4 Answers   HeadStrong,


Which class is the immediate superclass of the menucomponent class?

0 Answers  


what is an isolation level?

0 Answers  


can i call multipule form beans in Action class?

1 Answers   Wipro,


For an example, if we have some variable in run method, and we created one or more threads. Does all threads will share the same variable or a copy of variable is created for each thread??

1 Answers  


What is the diffrence between a local-tx-datasource and a xa-datasource?

0 Answers  


Are enterprise beans allowed to use thread.sleep()?

0 Answers  


i want documentation of text file splitter & merger of advanced java

1 Answers   Infosys,


What is a sessionfactory? Is it a thread-safe object?

0 Answers  


How would you create a button with rounded edges?

0 Answers  


Categories