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

Mention some interfaces implemented by linked list in java.

1023


Can we create a constructor in abstract class?

984


Which variable is the independent variable?

984


Where are global variables stored?

959


What is a prefix function.write down a code to compute prefix function.

1064


Explain the difference between jdk, jre, and jvm?

1042


Are functions objects in java?

1082


How to run a JAR file through command prompt?

1282


Can we overload destructor in java?

996


Can we have multiple classes in a single file?

983


What is contract between hashcode and equal method?

1054


Can we cast any other type to boolean type with type casting?

961


Give any two differences between C++ and java.

1150


Where is const variable stored?

937


What is the ==?

892