aspose file tools*
The moose likes Beginning Java and the fly likes Difference between Polymorphism and Dynamic Method lookup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Difference between Polymorphism and Dynamic Method lookup" Watch "Difference between Polymorphism and Dynamic Method lookup" New topic
Author

Difference between Polymorphism and Dynamic Method lookup

chetan shetty
Greenhorn

Joined: Dec 07, 2005
Posts: 2
Hi all,

Can somebody throw light as to whether polymorphism and dynamic method lookup are different or the same?

As polymorphism allows a reference to denote objects of different
types at different type during runtime.
How then is dynamic method lookup similar or different?

I am pretty confused on the terminologies used here.

Thanks
Chetan
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Hi Chetan,

Welcome to JavaRanch!

To quote the polymorphism chapter of Bruce Eckel's Thinking in Java: "...polymorphism (also called dynamic binding or late binding or run-time binding)..."

(This question isn't really about threads and synchronization, so don't be surprised of one of the forum moderators moves this to a "Java in General" forum. )


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Indeed. Let's move this to Java in General (Beginner).


[Jess in Action][AskingGoodQuestions]
chetan shetty
Greenhorn

Joined: Dec 07, 2005
Posts: 2
Hi Marc,

Thank you for the input. It should definitely help.
And yes, i did realise that i had posted my query in the incorrect context
after i had posted my query.
Oversight on my part.


Thanks once again.
Chetan
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Note that some people use the term "polymorphism" for a much more general concept - sometimes method overloading is also called "compile time polymorphism", for example. In that sense, dynamic method lookup is a specific form of (runtime) polymorphism.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between Polymorphism and Dynamic Method lookup