File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Overloading-issue- Help me out guys - Imm. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Overloading-issue- Help me out guys - Imm." Watch "Overloading-issue- Help me out guys - Imm." New topic

Overloading-issue- Help me out guys - Imm.

deepu Bhalotia
Ranch Hand

Joined: Apr 19, 2005
Posts: 39

Added tags.

Methinks there should be a question here... Or could this be the answer?

[ April 29, 2005: Message edited by: Barry Gaunt ]
[ April 29, 2005: Message edited by: Barry Gaunt ]
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
So whats you doubt ?

PS: your name doesn't match the naming policy change it before a bartender catches you.

Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
I have already requested a name change... But it falls on blind eyes I think. :roll:

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Raghu Shree
Ranch Hand

Joined: Mar 18, 2005
Posts: 143
Here method overloading is based on reference type. So Animal version of method is executed, because obj is animal type reference.

Raghu J<br />SCJP 1.4<br /> <br />The Wind and waters are always<br />on the side of the ablest navigators.<br /><a href="" target="_blank" rel="nofollow">SCJP Group</a><br /><a href="" target="_blank" rel="nofollow">SCWCD Group</a>
I agree. Here's the link:
subject: Overloading-issue- Help me out guys - Imm.
jQuery in Action, 3rd edition