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 you will prevent method overriding?

Answer Posted / sumit

One can prevent method overriding by marking the method final. if you make a method static and reuse it in the subclass it will hide the the super class method. This is called method hiding rather than overriding.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What checkbox method allows you to tell if a checkbox is checked?

948


Can we override constructors in java?

1075


Can you give few examples of final classes defined in java api?

957


I want to re-reach and use an object once it has been garbage collected. How it's possible?

957


What is the file extension for java?

1023


What is ellipsis in java?

1006


What are nested classes in java?

1039


Where pragma is used?

992


Can you override a final method?

983


Difference between string s= new string (); and string s = "abv";?

1160


How do you remove an element from an arraylist in java?

949


How many decimal digits is 64 bit?

874


How java is similar to c?

999


How big is a 64 bit float?

953


Define canvas?

917