Post

🌒 Eclipse IDE
🌒 Eclipse IDE@EclipseJavaIDE·
Let's take a look at your Java overloading skills. Is it 1? 0? Compile error? Runtime error? (cheaters suck!)
🌒 Eclipse IDE tweet media
English
28
14
57
0
🌒 Eclipse IDE
🌒 Eclipse IDE@EclipseJavaIDE·
"1 because call get to the most specific match" said @KoreMandar and he's completely right!
English
1
1
9
0
Tim Rowe
Tim Rowe@tjsr·
@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
0
0
3
0
Harsha Raj
Harsha Raj@beaharsha·
@EclipseJavaIDE Answer is 1. In hierarchy child will get priority. In the absence of String, Object run method will be called
English
0
0
0
0
Taga-Tokyo
Taga-Tokyo@TagaTokyo23·
@EclipseJavaIDE Hmmm. Compile error saying it cannot determine which version of “run” to use?
English
0
0
0
0
Andrew Hill
Andrew Hill@ahontwi·
@EclipseJavaIDE reckon its one of those ambiguous thingy compile errors and needs an explicit cast?
English
0
0
0
0
rk⚡fg 
rk⚡fg @rkfg_me·
@EclipseJavaIDE Compile error, I had this one in my library. Had to cast null to one of the types.
English
1
0
0
0
Sinan Keskin
Sinan Keskin@sinankesk_in·
@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
0
0
0
0
Paylaş