which class calling?
Hi, I have a Utility Class with methods. Is there any way to print/log the caller? I mean from which class and which method calling this Utility class method.Thanks.
[186 byte] By [
raghu182a] at [2007-11-27 2:18:45]

In JDK 5 or laterSystem.getStackTrace()beforenew Throwable().getStackTrace()Read the API for those methods and for StackTraceElement.Most times, however, this info is not needed. What, exactly, is it you want to do?