Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: what is difference between call stack and stack tace?

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default what is difference between call stack and stack tace?

    Hi !
    My doubt is on call stack and stack trace in java.
    Call stack: “The call stack is an internal list of all the methods that are currently executing.”
    Stack trace: ”It is a list of all all the methods in call stack.”
    According to above definitions Stacktrace contains list of all the methods in call stack.
    Then what is the difference between call stack and stack trace?
    Please explain the difference.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,152
    Thanks
    49
    Thanked 2,158 Times in 2,131 Posts

    Default Re: what is difference between call stack and stack tace?

    Where did you get those definitions?
    Those definitions sound like the same thing.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 139 Times in 134 Posts

    Default Re: what is difference between call stack and stack tace?

    Maybe I'm wrong, but I think that the call stack is the list of the methods and the stack trace is the String representation of this list.

  4. #4
    Junior Member
    Join Date
    Apr 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: what is difference between call stack and stack tace?

    The call stack is the actual data structure in memory while the stack trace is just a representation or snapshot of the call stack...

Similar Threads

  1. Please Help Java Stack
    By izzahmed in forum What's Wrong With My Code?
    Replies: 8
    Last Post: November 25th, 2011, 06:46 AM
  2. stack
    By ridg18 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 22nd, 2011, 11:45 AM
  3. Stack
    By AmyH in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 7th, 2010, 03:04 PM
  4. Stack Order?
    By TimW in forum AWT / Java Swing
    Replies: 2
    Last Post: September 19th, 2009, 07:33 AM
  5. Error of "cannot access InToPost" in 3 and 5 code
    By jaysoncutie in forum What's Wrong With My Code?
    Replies: 2
    Last Post: August 25th, 2009, 09:12 AM