What happens when a method is invoked in Java?
The method’s local variables are stored in Heap Memory
The method’s local variables and references are stored in Stack Memory
The method’s local variables and references are stored in Method Area
The method execution is not related to memory allocation
This question is part of this quiz :
Java Heap vs Stack