ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Java Related >> Java J2EE >> Core Java
 
 


 

 
 Core Java interview questions  Core Java Interview Questions (1720)
 Advanced Java interview questions  Advanced Java Interview Questions (331)
 Swing interview questions  Swing Interview Questions (43)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (195)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (145)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
Question
what is dynamic method dispatch ?
 Question Submitted By :: Rajnish.bhaskar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is dynamic method dispatch ?
Answer
# 1
For correct answer please type question and mail it to
raveesh.pintu@gmail.com


with your answer
 
Is This Answer Correct ?    19 Yes 25 No
Guest
 
  Re: what is dynamic method dispatch ?
Answer
# 2
sdf 
Is This Answer Correct ?    9 Yes 29 No
Guest
 
 
 
  Re: what is dynamic method dispatch ?
Answer
# 3
Dynamic Method Dispatch is Run -time Polymorphism which is
Method Overriding.
 
Is This Answer Correct ?    67 Yes 14 No
Rashmi
 
  Re: what is dynamic method dispatch ?
Answer
# 4
Dynamic dispatch is a mechanism by which a call to
Overridden function is resolved at runtime rather than at
Compile time , and this is how Java implements Run time
Polymorphism.
 
Is This Answer Correct ?    76 Yes 5 No
Penchala
 
  Re: what is dynamic method dispatch ?
Answer
# 5
This is a unique feature in JAVA.as the name itself
suggests that it is related with run time.In this classes
has methods with same method name and signature.However
which method will b executed will be decided during run
time.
 
Is This Answer Correct ?    29 Yes 12 No
Rajashree
 
  Re: what is dynamic method dispatch ?
Answer
# 6
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 ?    70 Yes 16 No
Yayati Pavan Kumar
 
  Re: what is dynamic method dispatch ?
Answer
# 7
In dynamic method dispatch a reference of class can be
created and that can be used to executed overridden method
at run time.
 
Is This Answer Correct ?    19 Yes 5 No
Shanti Bhushan Singh
 
  Re: what is dynamic method dispatch ?
Answer
# 8
super class reference variable refering to a subclass object
is called dynamic method dispatch.
 
Is This Answer Correct ?    32 Yes 8 No
Ravikiran
 
  Re: what is dynamic method dispatch ?
Answer
# 9
supre class methods only call 
Is This Answer Correct ?    12 Yes 22 No
Rakesh
 
  Re: what is dynamic method dispatch ?
Answer
# 10
Java uses this fact to resolve calls to overridden methods
at run time. Here’s
how. When an overridden method is called through a
superclass reference, Java determines
which version of that method to execute based upon the type
of the object being referred to at the
time the call occurs. Thus, this determination is made at
run time with the help of dynamic method dispatch .
 
Is This Answer Correct ?    29 Yes 4 No
Arijit
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is the output ? Math.floor(-2.1) a)2 b)-2 c)-3.0 d)0 Accenture 4
How do you relate a Interface to a Class? Tell me in Detail?   4
1) Find the Merge point of two linked lists. 2) Swap two bits of integer. 3) Reverse individual words of the sentence. 4) Reverse string without using temp string. HCL 2
strings in java are objects.why?   2
What are the parameters used in Connection pooling? IBM 1
what is the difference between pagecontext and servletcontext? JBA-Infotech 5
What is JAVA? Why it is platform independent? NIIT 10
What is the differnence between String Buffer and String builder despite having knowledge that String builder is faster than String Buffer and last one is threadsafe.please tell another important difference. IBM 3
What is stop(), suspend(), resume() method?   3
What are concepts of OOPS and how are they implemented in Java? KPIT 2
Hi Friends.. can any one provide the real time example for methodoverloading and methodoverriding ......... Honeywell 2
what is d difference between deep cloning and shallow cloning in core java? Satyam 3
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com