Lecture 21
16
Method invocation stack
•At any moment while a program is running you can trace the sequence of active methods from the currently executing statement back to main()
•That sequence is the method invocation stack
•It’s called the call stack in C - often in Java too
•When a method throws an Exception the JVM looks for a surrounding try block so it can resume execution in the corresponding catch
•The search begins locally and works its way back through the call stack
•