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

Why won’t the jvm terminate when I close all the application windows?

1250


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

1062


which book is better for jdbc ,servlets and jsp

2106


What you mean by COM and DCOM?

1065


Can constructors be synchronized in java?

1132


what are memory considerations of jsp compares to other web components?

6540


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

1035


What do you know about seam?

1066


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

1033


Brief description about local interfaces?

1281


Which are the different segments of memory?

1084


Is there a guarantee of uniqueness for entity beans?

1015


What is the purpose of the notifyall() method?

1045


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

1062


What is bean? Where can it be used?

1176