Is it possible to get an object that invoked static method in this method?
I have this code:
class A{ static void foo(){ } } A a = new A(); a.foo
No is impossible...the static method don't have the reference, you have to pass it reimplementing the method as:
class A{ static void foo(A theObject){ } } A a = new A(); A.foo(a);
and is better don't call the static method from the instance of the object