StackTraceIsCallHistory
DRAFT

Misconception:

The stack trace is a historical record of which methods have been called in the program execution so far.

Incorrect

A stack trace is the sequence of previously called methods

Correct

Correction
Here is what's right.

Wrong. It is correct that the elements of a stack trace represent methods that have been called in the program execution so far. However, the stack trace does not include all previously called methods. It only includes the methods that are currently still active: this means methods that have been called but that have not yet returned (methods for which there are activation records/frames on the call stack).

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.