Under the Hood: How Registers, PCs, Stacks, and Heaps Run Your Android Code

You already know the textbook basics: methods and local variables go on the Stack, while objects hang out in the Heap.