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 / 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


Please Help Members By Posting Answers For Below Questions

What are heterogeneous objects?

1049


Why is multiple inheritance not supported in java?

1036


Can static method access instance variables ?

1142


What are class members by default?

1085


What do you understand by the bean persistent property?

1010


Which is better arraylist or vector?

1023


What is methods in java?

1011


Can a constructor call the constructor of parent class?

1045


What are the advantages of arraylist over arrays?

1092


What is the difference between the size and capacity of a vector?

1044


What are the concepts of 'OOPS'?

1078


What are the types of methodology?

1106


What is a nested list?

968


How do I remove a character from a string in java?

966


What does @param args mean in java?

1065