Hi, I am reading ariticle in the following java course:
https://www.codecademy.com/courses/learn-java/lessons/java-debugging/exercises/exceptions
the third bullet point of stack trace said :
The method that invoked that one
I don’t know what this refer to and how it differ from second bullet point.
Hi there,
From looking at the bullet points, I understand the stack trace as a roadmap. As you go down the line, each item below is the one that activated or “invoked” the one above it.
- Method 3 (this is the method that was running)
- Method 2 (this one invoked method 3)
- Method 1 (this one invoked method 2)
Does that make sense?
2 Likes