In Java, how is Stack Memory used during method execution?

Last Updated :
Discuss
Comments

In Java, how is Stack Memory used during method execution?

Stack Memory stores class variables

Stack Memory is used for allocating objects

Stack Memory is used to store method calls and local variables

Stack Memory is used to store garbage objects

Share your thoughts in the comments