Home » Tip Bank » Java
  • Email Article
  • Comment on this Article
  • Share Article
    • Digg
    • del.icio.us
    • Newvine
    • furl
    • StumbleUpon
    • BlinkList
    • Newsvine
    • Magnolia
    • Facebook
    • Tailrank
    • Slashdot
    • Technorati
    • Google Bookmarks
    • Yahoo Favorites
    • Windows Live
    • Ask
Language: Java
Expertise: Intermediate
Apr 23, 2018

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Watch

Understanding the Current Stack Under Execution

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();
   }
}
M S Sridhar
 
Submit a Tip
Browse "Java" Tips
Browse All Tips
w3.org
htmlandcssbook.com