This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Overloaded Method Resolution at Compile time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Overloaded Method Resolution at Compile time" Watch "Overloaded Method Resolution at Compile time" New topic
Author

Overloaded Method Resolution at Compile time

Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

Which overloaded method is called is resolved at compile time correct?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43929
    
  33
Yes.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43929
    
  33
But not quite. It would appear, from the link I posted earlier. that if you override an overloaded method, then the usual rules about polymorphism apply at run-time.
 
Have you checked out Aspose?
 
subject: Overloaded Method Resolution at Compile time
 
It's not a secret anymore!