dcsimg
 

Submitted by: M S Sridhar(sridhar.ms@gmail.com)

Monday Apr 23rd 2018 by M S Sridhar

Language: Java, Level: Intermediate: - Java provides an easy approach to knowing the current stack.

Most of the time, you probably want to understand the flow to solve certain problems. Java provides an easy approach to knowing the current stack.

Code snippet:

public class DumpStack
{
   public static void main(String args[])
   {
      DumpStack dumpStack = new DumpStack();
      dumpStack.proceed();
   }

   private void proceed()
   {
      java.lang.Thread.dumpStack();
   }
}
Home
Mobile Site | Full Site
Copyright 2018 © QuinStreet Inc. All Rights Reserved