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 dynamic method dispatch ?

Answer Posted / ramya

Dynamic method dispatch is the process the Java runtime
system uses to determine which method implementation to call
in an inheritance hierarchy. For example, the Object class
has a toString() method that all subclasses inherit, but the
String class overrides this method to return its string
content. If a String or other object type is assigned to an
Object reference using application logic, the Java compiler
cannot know in advance where a call to the toString() method
will be resolved, it must be determined dynamically at runtime.

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data member in java?

1047


How to change the priority of thread or how to set the priority of thread?

1040


What is finalize()? Is finalize() similar to a destructor?

965


What is the difference between a checked and an unchecked exception?

996


Are global variables initialized to zero?

960


What are encapsulation, inheritance and polymorphism?

1010


What will happen when using pass by reference in java?

989


What is a qms manual?

999


What is thread safe in java?

993


What is meant by null and void?

965


What is use of super keyword in java?

1023


What is the purpose of the file class in java programming?

1026


Explain about field hiding in java?

944


What is string builder?

893


Differentiate between a constructor and a method? Can we mark constructors final?

1195