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...

How can final class be used?

Answer Posted / jayant gope

Final is keyword that can be used with class, method and also with the variable.

Class: When final is used with the class, it means that class cannot be further extended or inherited by the other classes. So, final keyword restricts class from being inherited.

Method: When final is used with the method, this means that method cannot be overridden.

Variable: When final is used with the variable, it makes the variable constant i.e. the variable cannot be further modified.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What modifiers are allowed for methods in an interface?

1158


What is meant by method?

1098


What is super keyword explain with example?

1284


State the significance of public, private, protected class?

1105


What is a method in programming?

1186


What are 4 pillers of object orinted programming?

1013


How many digits can a float hold?

1008


If a method is declared as protected, where may the method be accessed in java programming?

990


Explain the polymorphism principle?

1007


Can private members of a base class are inheritable justify?

927


What is static and final keyword in java?

1020


What is formatted output?

951


What is a superclass?

1344


What is a top level class in java?

1023


What if static is removed from main method?

1068