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

How can an exception be thrown manually by a programmer?

1048


Difference between overriding and overloading in java?

1112


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

1237


Can a static method be overridden in java?

1059


What are actual parameters?

1092


What does n mean?

1055


Can you call a method on a null object?

1060


Why we used break and continue statement in java?

1219


What do u mean by variable?

1114


What is the purpose of java?

1050


How to make a write-only class in java?

1103


What is the difference between conversation & casting?

1094


What is assembly language?

1060


Explain what do you mean by functional overloading in java?

1068


How do you compare values in java?

1095