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

Can You Have Virtual Functions In Java?

1148


What are static initalizers in java ?

1014


What is a Transient Object?

1085


What is remote method invocation (rmi)?

1063


Write a program to find the whether a number is an Armstrong number or not?

1029


What are the different access modifiers available in java?

1044


What is a local block?

1136


Does sprintf allocate memory?

1106


Which method must be implemented by all threads?

1264


In the below example, how many string objects are created?

1045


Write a program to search a number in the given list of numbers.

1029


What is object in java?

983


What is the full name of java?

1118


What happens when a thread cannot acquire a lock on an object in java programming?

1010


What is the use of static methods?

1039