dumpstack
线程类静态void dumpStack() (Thread Class static void dumpStack())
This method is available in package java.lang.Thread.dumpStack().
软件包java.lang.Thread.dumpStack()中提供了此方法。
This method is used to print or display stack tracing of the current thread to System.err (Standard error stream).
此方法用于打印或显示当前线程到System.err (标准错误流)的堆栈跟踪。
The purpose of this method is basically for debugging (i.e. If we call multiple methods so it is difficult to find an error so with the help of this method we can find an error in stack trace or stack hierarchy).
该方法的目的基本上是用于调试(即,如果我们调用多个方法,那么很难发现错误,因此借助该方法,我们可以在堆栈跟踪或堆栈层次结构中找到错误)。
This method is static so this method is accessible with classname too like