Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

Static binding question

 
Oceana Wickramasinghe
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Report post to moderator
I took this example from the study guide titled "java 6 and j2ee 1.5 Black Book"



The book states that since the method signatures are identical, the compiler fails to bind the methods to their definitions, and it is done at run time. But the problem is that these methods are declared static. To the best of my knowledge static methods are bound at compile time. Which one is right?
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Report post to moderator
Compile time in my opinion.
Try
 
Stephan van Hulst
Bartender
Pie
Posts: 5415
52
  • Mark post as helpful
  • send pies
  • Report post to moderator
Let's continue here: http://www.coderanch.com/t/561723/java/java/Static-binding
 
    Bookmark Topic Watch Topic
  • New Topic