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 do you mean by flow of struts?
What is a variable in java?
what do you mean by classloader in java?
What is java full form?
Why inputstreamreader is used in java?
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
Convert Binary tree to linked list.
List some important features of java 10 release?
How big is a gigabyte?
Differences between traditional programming language and object oriented programming language?
Why are lists ordered in java?
Can we make a constructor final?
If two threads have same priority which thread will be executed first ?
Will set allow duplicates in java?
What is the format specifier?