This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Author

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="http://groups.yahoo.com/group/scjp_share" target="_blank" rel="nofollow">SCJP Group</a><br /><a href="http://groups.yahoo.com/group/JavaBeat_SCWCD" target="_blank" rel="nofollow">SCWCD Group</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Overloading-issue- Help me out guys - Imm.
 
Similar Threads
my Overload program
needs explanation
Why does this give compilation error ?
Query on the topic overloading
Compile time polymorphism