Post

"1 because call get to the most specific match" said @KoreMandar and he's completely right!
English

@EclipseJavaIDE I believe this code never gets run because it never gets past the code review and merged to trunk.
Oh so am I kidding.
English

@EclipseJavaIDE I think compilation error due to ambiguity
English

@EclipseJavaIDE Answer is 1. In hierarchy child will get priority. In the absence of String, Object run method will be called
English

@EclipseJavaIDE Compiler error. Must be either run((String)null) or cast with Object
Monaco 🇲🇨 English

@EclipseJavaIDE Null is not an object, so definitely an error
English

@EclipseJavaIDE Es gibt den Fehler duplicate method. Eine der beiden methoden darf so nicht definiert werden.
Deutsch

@EclipseJavaIDE @EclipseFdn My wish is compile error, but I suspect 0
English

@EclipseJavaIDE Hmmm. Compile error saying it cannot determine which version of “run” to use?
English

@EclipseJavaIDE reckon its one of those ambiguous thingy compile errors and needs an explicit cast?
English

@EclipseJavaIDE Overloading is valid as the argument types are different.
Execution of the method run() depends on the order of the static method in the program (class).
void run(String s) is executed.
Result: 1
Correct/Wrong??
English

@EclipseJavaIDE Compile error, I had this one in my library. Had to cast null to one of the types.
English

@EclipseJavaIDE I believe the answer is compile error. Because on the contrary to common belief not everything is an object. Null is not an object. Right?
English













