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...

what is the purpose of method overriding in java where v r
completely re-defining a inherited method instead y can't v
create a new method and define.If the question is very silly
plz excuse me and do reply.Thank U!

Answer Posted / ershad md sk

Bcoz......wen we think in Object Oriented Lang ..has u ask
if we create a new method we hav to call the method each
time wen we invoke the Object & it is a performance ISSUE
it wil eat lot of memory & it is a COMPLEXITY
Issue ........if u override Using the superclass Handle we
can create any instance which is of any type(int Float
Long Short)it wil save space and reduce COMPLEXITY and
increase PERFORMANCE...

Is This Answer Correct ?    10 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an empty class? What functionality does it offer in Java?

1281


How many types of methods are there?

1064


How many bits are in a sentence?

1179


what is daemon thread and which method is used to create the daemon thread? : Java thread

979


What is udp in java?

990


How can you handle java exceptions?

1034


What is the difference between integer parseint and integer valueof?

1008


Why string is not thread safe?

1012


What is variable argument in java?

1014


What do you understand by an io stream?

1049


How do you compare objects in java?

962


How are multiple inheritances done in Java?

1147


Can static methods be inherited?

1055


What does the “final” keyword mean in front of a variable? A method? A class?

1000


What is a jagged array in java?

1122