Actually it does not make sense to me. Maybe someone can help me understand. It seems silly that I have to switch the order of my parameters in order to have this function.
Since Java allows you to call the method staticnon-statically, i.e. on the class object. So, if a class has methods staticand non-static- of method()the same signature, such a call: obj.method()will be ambiguous.
static
non-static
method()
obj.method()
Because:
class Example { void method () { } static void method () { } void example () { method(); // <- ambiguous } }
, , , . Example. . .
Example.
, , , , , , , , .
" " kludge, . , . , .