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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to deploy Jar, War files in J2EE?

2640


cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

2166


What must a class do to implement an interface?

1127


What is the purpose of the wait(), notify(), and notifyall() methods?

982


What is JTS?

2319


Should synchronization primitives be used on bean methods?

1018


What is Remote Server?

2161


What are the different class loaders used by jvm?

1062


Brief description about local interfaces?

1212


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

2959


What are the design considerations while making a choice between using interface and abstract class?

1039


Which container method is used to cause a container to be laid out and redisplayed?

1100


Why are some of the class and element names counter-intuitive?

1079


Is there a guarantee of uniqueness for entity beans?

973


What is the difference between a menuitem and a checkboxmenuitem?

1048