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

How do you convert an int to a double in java?

1112


what is the purpose of the runtime class?

1107


placement papaers of spring computing technology

1456


Tell me the latest versions in java related areas?

1136


What is generics in java interview questions?

1138


What are the characteristics of Final,Finally and Finalize keywords.

1238


What is the purpose of the System class?

1040


How does multithreading take place on a computer with a single cpu in java programming?

1058


Why we cannot override static method?

1120


Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?

1195


What is the use of using enum to declare a constant?

1080


How to restrict a member of a class from inheriting by its sub classes?

1390


What is anagram word?

1052


Is 0 true or false in java?

1034


What does jenkins do?

969