File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes what is a stack trace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what is a stack trace" Watch "what is a stack trace" New topic
Author

what is a stack trace

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

what is a stack trace is it a method in some class???


http://www.lifesbizzare.blogspot.com || OCJP:81%
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

A stack trace is a listing of the method that's running, and the method that called it, and the method that called that one, etc. It's what you see if have an uncaught exception. You can print one yourself by including a line of code like this:

new Exception().printStackTrace();

It's extremely handy for debugging because it often contains line numbers.


[Jess in Action][AskingGoodQuestions]
Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

thank you Mr. Ernest Friedman-Hill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is a stack trace