ThreadcurrentThreadgetStackTrace
ThreadcurrentThreadgetStackTrace is a method within the Java programming language that returns an array of StackTraceElement objects. Each StackTraceElement represents a single call on the call stack at the time the method is invoked. The call stack itself is a record of the active subroutines or functions at a particular point in time. When a method is called, it is added to the top of the call stack. When a method returns, it is removed from the top.
Invoking ThreadcurrentThreadgetStackTrace on the currently executing thread captures the state of the call stack for that
The StackTraceElement objects themselves provide information about each frame on the stack, including the class name,