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 if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

1199


What is an iterator java?

1125


What is boolean false?

990


What is stringbuffer in java?

1071


What is regex in java?

956


What is method in java ?

1100


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

1184


Why are parameters used in functions?

1026


what is interface in java? Explain

982


why are there separate wait and sleep methods? : Java thread

1037


Difference between final and effectively final ? Why is effectively final even required ?

1001


What is equlas() and hashcode() contract in java? Where does it used?

1142


Explain serialization and deserialization in java?

1015


What does serializing data mean?

951


Which container method is used to cause a container to be laid out and redisplayed in java programming?

1117