Suppose I have a class called A and in that a method meth,
and if A is instaniated in tow class B and C, is there any way to know the name of the callin class in the method meth of A ? (the calling object should not be passed).
Yes, but it is very expensive. Create new Throwable and check the stack trace. It is not recommended to use this except for debugging.
In J2SE 1.4:
Undocumented class: sun.reflect.Reflection
sun.reflect.Reflection is NOT a standard API. Use at your own risk.