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
How do you download stubs from Remote place?
Can you inherit a constructor java?
what is the purpose of the runtime class?
What is the range of a character variable?
What is the do while loop syntax?
what is static import in java? Explain
Is map sorted in java?
What is string intern in java?
What are the features of junit?
What is thread synchronization in java?
How do you sort a list in java?
What is communist flag?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
Can a function return a function?
Is java a utf 8 string?