DRAFT
CallerFrameContainsCalleeFormal
Misconception:
When invoking a method, the caller’s stack frame must contain a variable for each formal parameter of the callee.
Incorrect
Stack frame of caller includes variables for callee's formal parameters
Correct
CorrectionHere is what's right.
Here is what's right.
This misconception probably comes from using IDEs that show (in a small font) the names of formal parameters in front of the actual arguments).
void register(String name, int age) {...}
...
register(name: "Matthias", age: 1);
Above, “name” and “age” are shown by an IDE, but they are not actually in the source code.