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 is gc()?

1039


Whats the difference between notify() and notifyall()?

1014


Is a copy constructor?

1036


Add a value x to array from index l to r where 0 <= l <= r <= n-1

1079


What are computer functions?

927


What is a singleton factory?

947


What are the basic control structures?

960


What are the advantages of java?

972


Can an interface be defined inside a class?

1046


Which category the java thread do fall in?

979


What is unicode with example?

1180


what is ststic with example

2029


What happens if an exception is throws from an object's destructor?

1028


is there a separate stack for each thread in java? : Java thread

958


What's the difference between int and integer in java?

1134