2 ms·
Java uses the stack for local variables (including pointers to objects on the heap and primitives), and I believe Python uses a stack for the same as well. Retu
by johncolanduoni 9y ago
Java uses the stack for local variables (including pointers to objects on the heap and primitives), and I believe Python uses a stack for the same as well. Return pointers are the least of stack usage.
- Veedrac 9y agoThey don't allocate objects on the stack, though; they merely store bindings (and, in Java's case, primitives).