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

If your ui seems to freeze periodically, what might be a likely reason?

1114


Do I have to use jsps with my application?

1067


What is ioc concept & explain it?

1138


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

1138


Describe, in general, how java's garbage collector works?

1082


What is RMI and what are the services in RMI?

1248


Can constructors be synchronized in java?

1174


What is the relationship between the canvas class and the graphics class?

1076


Should synchronization primitives be used on bean methods?

1112


What is a class loader?

2075


What is abstract schema?

1080


What are the types of scaling?

1140


Explain about thread synchronization inside a monitor?

2604


Name three subclasses of the component class?

1158


Is the infobus client side only?

1164