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?

Answers were Sorted based on User's Feedback



how you will prevent method overriding?..

Answer / ravi

by declaring the method has a final

Is This Answer Correct ?    24 Yes 1 No

how you will prevent method overriding?..

Answer / neelam,noida

final method can not overridden

Is This Answer Correct ?    22 Yes 0 No

how you will prevent method overriding?..

Answer / ravikiran

bu marking the method final

Is This Answer Correct ?    13 Yes 1 No

how you will prevent method overriding?..

Answer / 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

how you will prevent method overriding?..

Answer / murali.25

you also prevent overriding by making the method static

Is This Answer Correct ?    3 Yes 6 No

how you will prevent method overriding?..

Answer / sonam

You can prevent method overriding by declared method as
static

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Core Java Interview Questions

Can we access instance variables within static methods ?

0 Answers  


Why 1 is not a prime number?

0 Answers  


Is object a data type in java?

0 Answers  


How do generics work?

0 Answers  


What is thread life cycle in java?

0 Answers  


What are singleton services?

0 Answers  


What are the library functions in java?

0 Answers  


Is alive method in java?

0 Answers  


What is the difference between hashmap and hashtable in java?

0 Answers  


How to call one constructor from the other constructor ?

0 Answers  


What are concepts of OOPS and how are they implemented in Java?

2 Answers   KPIT,


Explain reverse a linked list recursive java solution?

0 Answers  


Categories