what is dynamic method dispatch ?
Answer Posted / sherin chacko
Dynamic method dispatch is an important mechanism in java is used to implement run time polymorphism.In this mechanism, method overriding is resolved at run time instead of compile time.that means,the choice of the overridden method to be executed in response to a method call is done at run time.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Which command from the jdk compiles a java program?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
What are the wrapped, classes?
What are alternatives to java serialization?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What are the drawbacks of singleton class?
What happens if a constructor is declared private?
Is java type safe?
What is native code?
Java is Pass by Value or Pass by Reference?
How is garbage collection controlled?
Why is the type for real numbers called double?
What is import java util arraylist?
How do you implement polymorphism in our day to day life?
When arithmeticexception is thrown?