What happens when a method is invoked in Java?

Last Updated :
Discuss
Comments

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

Share your thoughts in the comments