aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 36599
    
  16
Yes.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36599
    
  16
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Overloaded Method Resolution at Compile time
 
Similar Threads
Overriding static methods - pl explain!
questions about overloading
Overriding and Overloading.
Class Hierarchy nightmares
overloaded method