title: Which method is getting executed when they have the same implementation of the same interface?
body: <p>There is an interface with a method called </p>
  
  <p><code>foo(boolean arg1, String arg2);</code></p>
  
  <p>Additionally I have two classes which implement this method. Now when I call the foo method from the interface, how does it decide which implementation to pick?</p>
  
  <p>The 2 implementations take the same parameters and return the same object but differ in the implementation.</p>