what is dynamic method dispatch ?
Answer Posted / yayati pavan kumar
Ex:
class A
{
public void m1()
{}
}
class B extends A
{
public void m1()
{
}
main()
{
A a=new B();//B reference will be assign at run time
a.m1();//class B method m1() will be called at runtime
}
}
Is This Answer Correct ? | 80 Yes | 18 No |
Post New Answer View All Answers
What is a ?
What is java reflection?
What are byte codes?
how to prepare for IT Officers Interview in Banks
How is a structure different from array ?
Explain the meaning of java applet.
Why is multiple inheritance not supported in java?
Why are lists ordered in java?
Can you explain the cs option of java interpreter?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
What is a void method?
What is object cloning in Java?
What do you know about the garbate collector?
How do you replace a string in java?
Difference between stack and queue?