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 is the difference between the font and fontmetrics classes in java programming?

1159


What is difference between final and immutable?

1150


What does exclamation mean in java?

1107


What are assembly attributes?

1010


How do you create an array in java?

1001


Write a program to print count of empty strings in java 8?

1007


What are scalar data types?

1072


What is the difference between conversation & casting?

1054


What is object class in java?

930


What is the major advantage of external iteration over internal iteration?

1111


What are the advantages and disadvantages of object cloning?

1110


Do you know why doesn't the java library use a randomized version of quicksort?

955


Explain how can you debug the Java code?

1076


What if I write static public void instead of public static void in java?

1092


How do you declare a destructor in java?

1005