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

Is java free for businesses?

1001


Why declare Main() method as a static in java ?

1018


Why there is no call by reference in java?

871


Can we inherit inner class?

946


What is difference between float and double?

910


What is the difference between variable & constant?

961


What is the difference between the ">>" and " >>>" operators in java?

927


What is a java object and java application?

985


Write a java program that prints all the values given at command-line.

967


Is java hard to learn?

863


Can we use static class instead of singleton?

998


Why do we need singleton?

925


what do you mean by classloader?

1019


Is there is any difference between a scrollbar and a scrollpane?

936


How does arraylist work in java?

1034